Zilog ZUSBOPTS Uživatelský manuál Strana 447

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 520
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 446
UM017105-0511 Standard Functions
Zilog Developer Studio II – ZNEO™
User Manual
419
gets
Reads characters from the input stream into the array pointed to by s, until end-of-file is
encountered or a new-line character is read. The new-line character is discarded, and a null
character is written immediately after the last character read into the array.
Synopsis
#include <stdio.h>
char *gets(char *s);
Returns
The value of s, if successful. If a read error occurs during the operation, the array contents
are indeterminate, and a null pointer is returned.
Example
char *r;
char buf [80];
r=gets(buf);
if (r==NULL)
/*No input*/
The UART must be initialized using the Zilog init_uart() function. See the init_uart
command on page 182.
isalnum
Tests for any character for which isalpha or isdigit is true.
Synopsis
include <ctype.h>
int isalnum(int c);
Example
int r;
char c='a';
r=isalnum(c);
Note:
Zobrazit stránku 446
1 2 ... 442 443 444 445 446 447 448 449 450 451 452 ... 519 520

Komentáře k této Příručce

Žádné komentáře