Table of Contents        Previous topic       Next topic       

C COMPILER LIBRARY FUNCTION REFERENCE->Detailed Descriptions->sscanf()


#include <stdio.h>

int sscanf(char* buffer, const char* format, ...);


bufferPointer to the input data
formatFormat control string
...Arguments to receive scanned data


This function reads formatted data from a string buffer and assigns converted values to subsequent arguments, each of which must be a pointer.  The function returns when format is exhausted.

The format control string has the same form and function as the format argument of the scanf() function.

Return Value

The function returns the number of fields successfully converted and assigned.