Advanced Programming in the UNIX® Environment

(lily) #1
ptg10805159

856 Function Prototypes Appendix A


int fwide(FILE *fp,intmode);
<stdio.h> p. 144
<wchar.h>
Returns: positive if stream is wide oriented, negative if stream
is byte oriented, or 0 if stream has no orientation

size_t fwrite(const void *restrictptr,size_tsize,size_tnobj,
FILE *restrictfp);
<stdio.h> p. 156
Returns: number of objects written

const
char *gai_strerror(interror);
<netdb.h> p. 600
Returns: a pointer to a string describing the error

int getaddrinfo(const char *restricthost,
const char *restrictservice,
const struct addrinfo *restricthint,
struct addrinfo **restrictres);
<sys/socket.h> p. 599
<netdb.h>
Returns: 0 if OK, nonzeroerror code on error

int getc(FILE *fp);
<stdio.h> p. 150
Returns: next character if OK,EOFon end of file or error

int getchar(void);
<stdio.h> p. 150
Returns: next character if OK,EOFon end of file or error

int getchar_unlocked(void);
<stdio.h> p. 444
Returns: the next character if OK,EOFon end of file or error

int getc_unlocked(FILE *fp);
<stdio.h> p. 444
Returns: the next character if OK,EOFon end of file or error

char *getcwd(char *buf,size_tsize);
<unistd.h> p. 136
Returns:bufif OK,NULLon error

gid_t getegid(void);
<unistd.h> p. 228
Returns: effective group ID of calling process
Free download pdf