terminals and C -
i reading book called "beginning linux programming". ask line of code (from page 204):
if (output_stream) putc(char_to_write, output_stream);
i can't understand line. appreciated.
in
if (output_stream) putc(char_to_write, output_stream);
if(output_stream)
condition. if output_stream
not null
, putc
execute.
the function putc
declaration int putc (int char, file *stream)
writes character (an unsigned char
) specified argument char
specified stream
, advances position indicator stream.
in short, writes character(first argument) second argument.
Comments
Post a Comment