Crossware

Table of Contents        Previous topic       Next topic       

C LIBRARY FUNCTIONS->Detailed Descriptions->sscanf()

Summary

#include <stdio.h>

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


Parameters

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

Description

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.