Re: right padding
Pilcrow <Pilcrow6@gmail .comwrites:
Well you should be idly waiting, you should be reading and learning.
Google for "demons fly out of your nose", and also read all the
other responses correcting you in this thread. If you refuse to
learn, there's no point trying to teach you.
Phil
--
Christianity has such a contemptible opinion of human nature that it does
not believe a man can tell the truth unless frightened by a belief in God.
No lower opinion of the human race has ever been expressed.
-- Robert Green Ingersoll (1833-1899), American politician and orator
(Thank you for the correction. See - learning from others is easy!)
Pilcrow <Pilcrow6@gmail .comwrites:
On Wed, 29 Oct 2008 19:42:23 +0200, Phil Carmody
<thefatphil_dem unged@yahoo.co. ukwrote:
>
>
Your remarks are always so helpful and so clearly expressed! I always
wait for your input.
<thefatphil_dem unged@yahoo.co. ukwrote:
>
>>Pilcrow <Pilcrow6@gmail .comwrites:
>>
>>I sense a demonsneeze coming.
>>char *pad( /* func returns ptr to start of string */
>> int n, /* number to print */
>> size_t width, /* pad to this width */
>> int padch, /* character to pad with */
>> int rl) /* pad on right (0) or left (1) */
>>{
>> char *s; /* ptr to output string */
>> int count = 0; /* count of characters */
>> int dig = digits(n); /* space required for the number */
>> if(dig width) {
>> fputs("Field not big enough for data", stderr);
>> exit (EXIT_FAILURE);
>> }
>>>
>> free(s);
>> int n, /* number to print */
>> size_t width, /* pad to this width */
>> int padch, /* character to pad with */
>> int rl) /* pad on right (0) or left (1) */
>>{
>> char *s; /* ptr to output string */
>> int count = 0; /* count of characters */
>> int dig = digits(n); /* space required for the number */
>> if(dig width) {
>> fputs("Field not big enough for data", stderr);
>> exit (EXIT_FAILURE);
>> }
>>>
>> free(s);
>>I sense a demonsneeze coming.
Your remarks are always so helpful and so clearly expressed! I always
wait for your input.
Google for "demons fly out of your nose", and also read all the
other responses correcting you in this thread. If you refuse to
learn, there's no point trying to teach you.
Phil
--
Christianity has such a contemptible opinion of human nature that it does
not believe a man can tell the truth unless frightened by a belief in God.
No lower opinion of the human race has ever been expressed.
-- Robert Green Ingersoll (1833-1899), American politician and orator
(Thank you for the correction. See - learning from others is easy!)
Comment