Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

soc_puts() (puts) - put string in output buffer

&pagelevel(3)&pagelevel



#include <sys.socket.h>


Kernighan-Ritchie-C:

int soc_puts(s, d);

char *s;
int d;

ANSI-C:
int soc_puts(char* s, int d);


Description

The soc_puts() function is only supported in the AF_INET and AF_INET6 address families and can only be used on stream sockets.

The soc_puts() function writes the character string s to the output buffer of socket d.

Return value

0:

If successful.

EOF:

If nothing could be written to the buffer due to the end-of-file (EOF) condition, or if errors occur.

See also

soc_flush()