Tizen RT Libs&Environment
v1.0 D5
|
Provides APIs for Standard Input/Output. More...
Files | |
file | stdio.h |
Standard Input / Output APIs. | |
Macros | |
#define | FILENAME_MAX _POSIX_NAME_MAX |
#define | EOF (-1) |
#define | stdin (&sched_getstreams()->sl_streams[0]) |
#define | stdout (&sched_getstreams()->sl_streams[1]) |
#define | stderr (&sched_getstreams()->sl_streams[2]) |
#define | putc(c, s) fputc((c), (s)) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More... | |
#define | putchar(c) fputc(c, stdout) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More... | |
#define | getc(s) fgetc(s) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More... | |
#define | getchar() fgetc(stdin) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More... | |
#define | CONFIG_LIBC_TMPDIR "/tmp" |
#define | P_tmpdir CONFIG_LIBC_TMPDIR |
#define | CONFIG_LIBC_MAX_TMPFILE 32 |
#define | L_tmpnam CONFIG_LIBC_MAX_TMPFILE |
#define | TMP_MAX 56800235584ull |
#define | EXTERN extern |
Typedefs | |
typedef struct file_struct | FILE |
Functions | |
int | fclose (FAR FILE *stream) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More... | |
int | fflush (FAR FILE *stream) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More... | |
int | feof (FAR FILE *stream) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More... | |
int | ferror (FAR FILE *stream) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More... | |
int | fileno (FAR FILE *stream) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More... | |
int | fgetc (FAR FILE *stream) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More... | |
int | fgetpos (FAR FILE *stream, FAR fpos_t *pos) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More... | |
char * | fgets (FAR char *s, int n, FAR FILE *stream) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More... | |
FAR FILE * | fopen (FAR const char *path, FAR const char *type) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More... | |
int | fprintf (FAR FILE *stream, FAR const char *format,...) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More... | |
int | fputc (int c, FAR FILE *stream) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More... | |
int | fputs (FAR const char *s, FAR FILE *stream) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More... | |
size_t | fread (FAR void *ptr, size_t size, size_t n_items, FAR FILE *stream) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More... | |
int | fseek (FAR FILE *stream, long int offset, int whence) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More... | |
int | fsetpos (FAR FILE *stream, FAR fpos_t *pos) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More... | |
long | ftell (FAR FILE *stream) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More... | |
size_t | fwrite (FAR const void *ptr, size_t size, size_t n_items, FAR FILE *stream) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More... | |
FAR char * | gets (FAR char *s) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More... | |
FAR char * | gets_s (FAR char *s, rsize_t n) |
reads a line from stdin into the buffer More... | |
int | ungetc (int c, FAR FILE *stream) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More... | |
int | printf (FAR const char *format,...) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More... | |
int | puts (FAR const char *s) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More... | |
int | sprintf (FAR char *buf, FAR const char *format,...) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More... | |
int | asprintf (FAR char **ptr, FAR const char *fmt,...) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More... | |
int | snprintf (FAR char *buf, size_t size, FAR const char *format,...) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More... | |
int | sscanf (FAR const char *buf, FAR const char *fmt,...) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More... | |
void | perror (FAR const char *s) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More... | |
int | vprintf (FAR const char *format, va_list ap) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More... | |
int | vfprintf (FAR FILE *stream, const char *format, va_list ap) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More... | |
int | vsprintf (FAR char *buf, const char *format, va_list ap) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More... | |
int | vsnprintf (FAR char *buf, size_t size, const char *format, va_list ap) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More... | |
int | vsscanf (FAR const char *buf, FAR const char *s, va_list ap) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More... | |
FAR FILE * | fdopen (int fd, FAR const char *type) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More... | |
Provides APIs for Standard Input/Output.
#define getc | ( | s | ) | fgetc(s) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
#define L_tmpnam CONFIG_LIBC_MAX_TMPFILE |
#define P_tmpdir CONFIG_LIBC_TMPDIR |
#define putc | ( | c, | |
s | |||
) | fputc((c), (s)) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int asprintf | ( | FAR char ** | ptr, |
FAR const char * | fmt, | ||
... | |||
) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int fclose | ( | FAR FILE * | stream | ) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
FAR FILE* fdopen | ( | int | fd, |
FAR const char * | type | ||
) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int feof | ( | FAR FILE * | stream | ) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int ferror | ( | FAR FILE * | stream | ) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int fflush | ( | FAR FILE * | stream | ) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int fgetc | ( | FAR FILE * | stream | ) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int fgetpos | ( | FAR FILE * | stream, |
FAR fpos_t * | pos | ||
) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
char* fgets | ( | FAR char * | s, |
int | n, | ||
FAR FILE * | stream | ||
) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int fileno | ( | FAR FILE * | stream | ) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
FAR FILE* fopen | ( | FAR const char * | path, |
FAR const char * | type | ||
) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int fprintf | ( | FAR FILE * | stream, |
FAR const char * | format, | ||
... | |||
) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int fputc | ( | int | c, |
FAR FILE * | stream | ||
) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int fputs | ( | FAR const char * | s, |
FAR FILE * | stream | ||
) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
size_t fread | ( | FAR void * | ptr, |
size_t | size, | ||
size_t | n_items, | ||
FAR FILE * | stream | ||
) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int fseek | ( | FAR FILE * | stream, |
long int | offset, | ||
int | whence | ||
) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int fsetpos | ( | FAR FILE * | stream, |
FAR fpos_t * | pos | ||
) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
long ftell | ( | FAR FILE * | stream | ) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
size_t fwrite | ( | FAR const void * | ptr, |
size_t | size, | ||
size_t | n_items, | ||
FAR FILE * | stream | ||
) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
FAR char* gets | ( | FAR char * | s | ) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
FAR char* gets_s | ( | FAR char * | s, |
rsize_t | n | ||
) |
reads a line from stdin into the buffer
gets() reads a line from stdin into the buffer pointed to by s until either a terminating newline or EOF, which it replaces with '\0'. Reads at most n-1 characters from stdin into the array pointed to by str until new-line character, end-of-file condition, or read error. The newline character, if encountered, is not saved in the arraay. A NUL character is written immediately after the last character read into the array, or to str[0] if no characters were read.
If n is zero or is greater than RSIZE_MAX, a null character is written to str[0] but the function reads and discards characters from stdin until new-line character, end-of-file condition, or read error (not implemented).
If n-1 characters have been read, continues reading and discarding the characters from stdin until new-line character, end-of-file condition, or read error.
[out] | s | buffer to save string from stdin |
[in] | n | size of string to save |
void perror | ( | FAR const char * | s | ) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int printf | ( | FAR const char * | format, |
... | |||
) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int puts | ( | FAR const char * | s | ) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int snprintf | ( | FAR char * | buf, |
size_t | size, | ||
FAR const char * | format, | ||
... | |||
) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int sprintf | ( | FAR char * | buf, |
FAR const char * | format, | ||
... | |||
) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int sscanf | ( | FAR const char * | buf, |
FAR const char * | fmt, | ||
... | |||
) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int ungetc | ( | int | c, |
FAR FILE * | stream | ||
) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int vfprintf | ( | FAR FILE * | stream, |
const char * | format, | ||
va_list | ap | ||
) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int vprintf | ( | FAR const char * | format, |
va_list | ap | ||
) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int vsnprintf | ( | FAR char * | buf, |
size_t | size, | ||
const char * | format, | ||
va_list | ap | ||
) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int vsprintf | ( | FAR char * | buf, |
const char * | format, | ||
va_list | ap | ||
) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int vsscanf | ( | FAR const char * | buf, |
FAR const char * | s, | ||
va_list | ap | ||
) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)