printf
Printf ignoring null values?
I am writing C code for an embedded target, Microchip PIC24, and the runtime libc for some reason 开发者_Python百科won\'t properly send \\0 values over the serial port.[详细]
2023-03-26 09:38 分类:问答GCC: why a -Wformat warning for this fprintf?
We cleaned up a large number of warnings. In several cases, we replaced %s with %d. Everything seemed OK until we realized that the generated code wouldn\'t compile - strings had been replaced by numb[详细]
2023-03-25 22:14 分类:问答debug assertion failed using sprintf in c++
I keep getting the \"debug assertion failed\" error when i debug my code It seems to fail at the sprintf line in the function below:[详细]
2023-03-25 21:40 分类:问答String format works in fprintf but doesn't work in sprintf, gives segmentation fault
fprintf(fp,\"IP: %d:%.*s\\n\", ip, strstr(strstr(p->data, \"User-Agent:\"),\"\\n\") - strstr(p->data, \"User-Agent:\"),[详细]
2023-03-25 16:25 分类:问答print() function! Error 4096 object could not be converted to string
I have a variable called $result which should store all the results from my database query however when I run print ($result) it gives an error message:[详细]
2023-03-25 14:10 分类:问答printf() debugging library using string table "decoder ring"
I\'m writing to see if any of you have ever seen or heard of an implementation of the idea I\'m about to describe.[详细]
2023-03-25 13:07 分类:问答How to avoid printf warnings about types
I\'m wondering if there is a nice way to avoid gcc to scream about printf types : \'warning: format ‘%d’ expects argument of type ‘int’, but argument 12 has type foo\'[详细]
2023-03-24 21:53 分类:问答Regexp to detect if a string has printf placeholders inside
I am looking for a regular expression that will properly detect if there are printf() kind of placeh开发者_StackOverflow中文版olders inside a strings.Turns out this is a bit trickier than it it looks,[详细]
2023-03-24 11:15 分类:问答printing float/double using printf crashes the program
I am working on a syscall implementation for a PowerPc. I have tested some gcc functions and they all seem to work (e.g. sqrt sin cos pow printf malloc...)[详细]
2023-03-24 07:13 分类:问答printf field width doesn't support multibyte characters?
I want printf to recognize multi-byte characters when calculating the field width so that columns line up properly... I can\'t find an 开发者_开发问答answer to this problem and was wondering if anyone[详细]
2023-03-23 20:41 分类:问答