06.08.2013 Views

pSOSystem System Calls - Read

pSOSystem System Calls - Read

pSOSystem System Calls - Read

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

sprintf pREPC+ <strong>System</strong> <strong>Calls</strong><br />

sprintf Writes formatted output to a buffer.<br />

#include <br />

#include <br />

int sprintf(<br />

char *s, /* buffer */<br />

const char *format, /* format control */<br />

... /* arguments 1 through n */<br />

)<br />

Description<br />

Arguments<br />

Return Value<br />

Error Codes<br />

The sprintf() function is equivalent to fprintf() except that sprintf()<br />

directs the output to a buffer pointed to by s.<br />

s Points to the buffer where output is directed.<br />

format Points to the format control string. For more information,<br />

see fprintf on page 3-43.<br />

... Arguments 1 through n are written by sprintf() according<br />

to the specifications of the format control string.<br />

This function returns the number of characters written in the buffer, not counting<br />

the terminating null character.<br />

None.<br />

3-138 <strong>pSO<strong>System</strong></strong> <strong>System</strong> <strong>Calls</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!