I have a char that is given from fgets, and I would like to know how I can convert it into a char*. I am sure this has been posted before, but I couldn't find one that was doing quite what I wanted to do.
Другие символы. NUL. Null. (No character- нет данных). Используется для передачи в случае отсутствия данных.
> char array[SIZE] = {0}; Nothing wrong with this. It just assumes that the remaining SIZE-1 elements are also zero, so that's it, job done.
bool Hashtable::put(char* key, char* value) {. if (find(key) != NULL) return false; MDATA* entry = new MDATA(key, value); int bucket = hashString(key); entry->next = table[bucket]; table
Ken Sanchez NULL * Terri Duffy NULL * Roberto Tamburello NULL * Rob Walters NULL * Gail Erickson Ms. * (5 row(s) affected). When you convert data types that differ in decimal places, SQL Server will sometimes return a truncated result value, and at other times it will return a rounded value.
У NULL слишком важное значение в теории баз данных чтобы его заменить на пустое значение.
Is there a way to set a char variable to 0 or null or something so that it will basically reset my control variable.
*test (or test[0]) is a char. NULL is a pointer. Thou shalt not assign pointer values to chars.