S_isreg () regular fileS_isdir () directory fileS_ischr () character Device FileS_blk () block Device FileS_fifo famous Pipeline FileS_islnk symbolic link fileS_sock socket File
# Include # Include
Int open (const char * pathname, int Oflag,.../*
Study overview this week
● System call
● Standard I/O Library
● Process Control
● Inter-process communication: pipelines, named pipelines, and message queues
● Basic signal operations
● Basic thread operations
The details are as follows:
●
First, mathematical functionsWhen a mathematical function is called, the following command line is required to be wrapped in the source file:#include
Function prototype Description
Function
return value
Description
C + + supports two I/O, the first of which is inherited from the C language, and is an object-oriented I/O system defined by C + +.1, int getchar (void), return an integer value, or specify the value as a char variable, because the character is
IO operation functionFunction prototypes: Iord (BASE, REGNUM)Input parameters: Base for register, Regnum as register offsetFunction Description: Reads the value in the register from the base site-based device with the offset in the Regnum cell. The
C/C ++Input and output stream Summary
When I wrote my c ++ internship assignment two days ago, I suddenly found that I/O was so strange that I/O files were not opened for a long time. Today, I finally decided to find a book, sort it out and share
---restore content starts--- Read again the knowledge point of the document, intermittent has been seen 2-3 times, it took a little time to do a summary, I would like to go back to the book, haha.1. Buffer-based file operation2. Open Close File3.
Input character头文件#include 函数原型int*fp);从文件流中读取下一个字节,并作为字符返回到达文件尾或出现错误时,返回EOFintgetc*fp);与fgetc()功能类似,但可实现成一个宏int getchar(void);相当于getc(stdin)Output character header file #include function prototype int fputc (int c, file *fp); writes a
1.fopen ()Fopen's prototype is: File *fopen (const char *filename,const char *mode), fopen implements three functions: open a stream for use, connect a file to this stream, and return a FILR pointer to this stream.The parameter filename points to
File: the data set stored on the disk according to certain rules.
File Name: a string that uniquely identifies a disk file. Format: drive letter:/path/file name. Extension
Text File: data is stored on disk in one byte in the form of ASCII code of
Unlike file I/O operations on file descriptors, standard I/O operations are performed on streams.Stream:
For the stream, there is a good explanation in "C and pointer:
Ansi c further abstracts the concept of I/O. For C Programs, All I/O operations
Standard I/O 5.1 was written by Dennis Ritchie around 1975.Chapter 3 I/O is for file descriptors. The standard I/O Library is centered around stream. When opening or creating a file, we have associated a stream with the file.Stream ing determines
Reprint please indicate source: http://blog.csdn.net/u011974987/article/details/52354074This article is from: "Xuhao's Blog"
opening and closing of C language filesIn the C language, the file operation is done by the library function, we will
Input and output are not part of the C language itself. This chapter describes the standard library , focusing on input/output, and introduces string processing, storage management, and mathematical functions;The ANSI standard defines these library
Transferred from: http://www.latelee.org/embedded-linux/use-tslib-to-display-chinese-character.htmlFinally, the display of Chinese characters on the touchscreen, the real code, the test time is 1 days, before this all preparation, study spent about 2
1 fwide function attempts to set the direction of a stream (the orientation of a stream determines whether a read-write single-byte or multibyte character)int fwide (FILE *fp,int mode) wide-directional return positive value, byte-oriented return
UNIX advanced environment programming (6) standard I/O function library and I/O function library
The standard I/O function library hides the buffer size and allocation details so that we don't have to worry about whether the pre-allocated memory
The original moved, even from here to turn the bar:
ZZ from:http://blog.csdn.net/lazyclough/article/details/7646696
command to generate OpenSSL RSA key:
OpenSSL genrsa-out Private.key 1024OpenSSL rsa-in private.key-pubout-out public.key BIO * key =
Fgets (read a string from the file)Related functions: open, fread, fscanf, GETCHeader file include Define the function char * fgets (char * s, int size, file * stream );Function Description: fgets () is used to read characters from the file referred
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.