M
Magix
Hi,
I want to use fprintf to write to a file. My question about the formatted
output
How can I format so that I can allocate certain width for each %s
(Left-aignlied) ?
Example:
fprintf("%s %s %s %s, name, age, city, status);
<-------------------><----------------><----------------><------------->
Benjamin 50 years old New York
Married
Ken 45 years old Los Angelas
Single
Thanks.
I want to use fprintf to write to a file. My question about the formatted
output
How can I format so that I can allocate certain width for each %s
(Left-aignlied) ?
Example:
fprintf("%s %s %s %s, name, age, city, status);
<-------------------><----------------><----------------><------------->
Benjamin 50 years old New York
Married
Ken 45 years old Los Angelas
Single
Thanks.