Message208706
| Author |
larry |
| Recipients |
larry, serhiy.storchaka, zach.ware |
| Date |
2014年01月21日.21:08:02 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1390338482.84.0.559478122768.issue20323@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I had to throw it in a struct to prevent gcc from rearranging the variables. But this demonstrates the problem--when it prints the string, it doesn't stop at the end.
-----
#include <stdio.h>
typedef struct
{
int a;
char b[8];
int c;
} abc_t;
int main(int argc, char *argv[])
{
abc_t abc = {-1, "abcdefgh", -1};
printf("abc %i%s%i\n", abc.a, abc.b, abc.c);
return 0;
}
----- |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2014年01月21日 21:08:02 | larry | set | recipients:
+ larry, zach.ware, serhiy.storchaka |
| 2014年01月21日 21:08:02 | larry | set | messageid: <1390338482.84.0.559478122768.issue20323@psf.upfronthosting.co.za> |
| 2014年01月21日 21:08:02 | larry | link | issue20323 messages |
| 2014年01月21日 21:08:02 | larry | create |
|