char
What is the difference between EOF and ordinary integer?
below is the code Code : #include <stdio.h> int main(void) { int ch开发者_运维知识库; while((ch = getchar()) != \'h\')[详细]
2023-03-31 10:44 分类:问答Letter options in menu stated as undeclared in C program
I think my problem is something simple, but I\'m not seeing it. I\'m new to programming in C and this is an effort to see what I\'ve absorbed, bit by bit. I think I must have not properly defined my c[详细]
2023-03-31 07:11 分类:问答How can I join a char to a constant char*?
I have a function that joins two constant char* and returns the result. What I want to do though is join a char 开发者_Python百科to a constant char* eg[详细]
2023-03-30 05:32 分类:问答Copying a string from a pointer to a string
I\'m developing some code which reads file names from an sd-card (using FatFs) and displays them to the screen. Here\'s a snipet of what I have working, this prints out the files on the card as expect[详细]
2023-03-30 05:03 分类:问答Using fputc() to write one byte
Given unsigned char *str, a UTF-8 encoded string, is it legal to write the first byte (not charact开发者_如何学编程er) with fputc((char)(*str), file);Remove the cast to char. fputc takes the character[详细]
2023-03-30 00:14 分类:问答Type Casting of volatile char into register char type
I am in a situation where i a开发者_开发问答m getting an extra warning in my C code. warning #2513-D: a value of type \"volatile char *\" cannot be assigned to an entity of type \"char *\" A = B;[详细]
2023-03-29 23:37 分类:问答C end of line char
I\'m having this problem. char buffer[100]; buffer[0] = \"\\n\"; For some reason, the following statement is true[详细]
2023-03-29 17:53 分类:问答Want to translate/typecast parts of a char array into values
I\'m playing around with networking, and I\'ve hit a bit of a road block with translating a packet of lots of data into the values I want.[详细]
2023-03-29 08:09 分类:问答Using arrays of character strings: arrays of pointers - Are they like multidimensional arrays?
I\'ve been reading C++ for dummies lately and either the title is a misnomer or they didn\'t count on me. On a section about utilizing arrays of pointers with characters strings they show a function o[详细]
2023-03-29 04:47 分类:问答Read from a string until specific char in Android
How can I read numbers from a string until I find a specific char, in my case - a dot. For example I have a[详细]
2023-03-28 19:47 分类:问答