Crossware

Table of Contents        Previous topic       Next topic       

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

Summary

#include "stdio.h"

int gets(char* string);    Read a line from stdin


Parameter

string    Pointer to the character array to receive the input


Description

This function reads the next line from the standard input stdin into array pointed to by string.  The terminating newline character is replaced with '\0'.


Return Value

The function returns string or NULL if an error occurred.