Main Page | Class List | Directories | File List | Class Members | File Members

cpp_io.h File Reference

CKPM C pre-processor I/O definitions. More...


Functions

int put_string (int fd, char *s)
 write a string to an open file:
int put_int (int fd, int i)
 write an integer value as a string to an open file:
int put_char (int fd, char c)
 write a single character to an open file:
int put_two_string_nl (int fd, char *s1, char *s2)
 write two strings and a newline to an open file
int put_three_string_nl (int fd, char *s1, char *s2, char *s3)
 write three strings and a newline to an open file


Detailed Description

CKPM C pre-processor I/O definitions.


Function Documentation

int put_char int  fd,
char  c
 

write a single character to an open file:

Parameters:
fd an already opened file to write to
c the character to be written
Returns:
the response code from write(2)

int put_int int  fd,
int  i
 

write an integer value as a string to an open file:

Parameters:
fd an already opened file to write to
i the integer value to be written
Returns:
the response code from write(2)

int put_string int  fd,
char *  s
 

write a string to an open file:

Parameters:
fd an already opened file to write to
s the string to be written
Returns:
the response code from write(2)

int put_three_string_nl int  fd,
char *  s1,
char *  s2,
char *  s3
 

write three strings and a newline to an open file

Parameters:
fd an already opened file to write to
s1 the first string to be written
s2 the second string to be written
s3 the third string to be written
Returns:
the response code from write(2)

int put_two_string_nl int  fd,
char *  s1,
char *  s2
 

write two strings and a newline to an open file

Parameters:
fd an already opened file to write to
s1 the first string to be written
s2 the second string to be written
Returns:
the response code from write(2)


Generated on Thu Jul 13 03:56:36 2006 for CKPMcc by  doxygen 1.4.4