--- In [email protected], "John Matthews" <[EMAIL PROTECTED]> wrote: > > --- In [email protected], "David Hamill" <david@> wrote: > > > > Vic wrote: > > Therefore you can compute str at runtime, e.g.: > > > > char *str[100]; /* <-- typo */ > > /* compute str here */ > > printf(str, i); > > Corrected, and using the example in the question: > > int i = 123; > char str[100]; /* corrected */ > sprintf(str, "%%%d", 5); /* use %% to get % */ > printf(str, i); > printf("\nformat used: \"%s\"\n", str); >
- [c-prog] printf min fild width Vic Dura
- Re: [c-prog] printf min fild width Thomas Hruska
- Re: [c-prog] printf min fild width Vic Dura
- Re: [c-prog] printf min fild width David Hamill
- [c-prog] Re: printf min fild width John Matthews
- Re: [c-prog] Re: printf min fild width David Hamill
- [c-prog] Re: printf min fild width rohit2720
- Re: [c-prog] Re: printf min fild width Thomas Hruska
- Re: [c-prog] Re: printf min fild width David Hamill
- Re: [c-prog] Re: printf min fild width David Hamill
- Re: [c-prog] Re: printf min fild w... Paul Herring
- Re: [c-prog] Re: printf min fi... Paul Herring
- Re: [c-prog] Re: printf min fild width Vic Dura
- Re: [c-prog] printf min fild width Vic Dura
