I know that for cannot convert char to char * you just use the & in front of the char, but I cannot figure out what to do in this case.
char is just a 1 byte integer. There is nothing magic with the char type! Just as you can assign a short to an int, or an int to a long, you can assign a char to an int. Yes, the name of the primitive data type happens to be "char", which insinuates that it should only contain characters.
char *name[NAME_LEN]; is an array of pointers, not array of characters.So when you call strcpy(t->name, name); t->name becomes of type char** instead of char*.
int search_book(){ int select_search; char dumpchar[30]
Gundam Wing Eng Dub Ep 33-49. Jesse Anderson.
0. Int to Char in C, Output is not an int but a square box. 3. How to convert integers to characters in C?
Перевожу char в int, но на выходе неверное число, вот упрощений вариант
А char **s - резервирует область памяти и возвращает ссылку на ссылку на ячейку памяти и помещает значение в переменну�� s, Иначе говоря, инициализирует двумерный массив указателей. Используются: например - когда нужно работать с N-мерными структурами данных...
atoi() - это круть, но просит на вход const char*, а я могу максимум char сделать( Где здесь копать? Хотя тут char используют...