SilverScreen Solid Modeler

sscanf

sscanf

Previous topic Next topic  

sscanf

Previous topic Next topic JavaScript is required for the print function  

StandardCLibrary

 

int sscanf( char *buf, char *fmt, ... )

 

char *buf;        /* input string */

char *fmt;        /* format string */

 

 




Synopsis

#include "stdio.h"

 

The sscanf function parses the string at buf under control of format string fmt , and assigns converted values into subsequent arguments, each of which must be a pointer.

 

 

Parameters

buf is a null-terminated string containing the input string. fmt is a null-terminated string containing format conversion specifications. See the entry for fscanf for a description of permissible format specifiers.

 

 

Return Value

sscanf returns EOF (-1) if end of file or error occurs before any conversion; otherwise it returns the number of items converted and assigned.

 

 

See Also

fscanf , sprintf