Get rid of Trailing Numbers in C
Posted
by Tech163
on Stack Overflow
See other posts from Stack Overflow
or by Tech163
Published on 2010-05-29T11:21:09Z
Indexed on
2010/05/29
11:22 UTC
Read the original article
Hit count: 237
Filed under:
c
For example,
#include <stdio.h>
int main (int argc, const char * argv[]) {
char out = printf("teststring");
printf("%d\n", out);
return 0;
}
will return teststring10. Anyone has an idea how to get rid of the 10?
Thanks in advance.
© Stack Overflow or respective owner