1. File directory operation
The top stop record is the disk root directory, with '/' or '/'
Current directory./
.. /Represents the Apache directory, the Htdocs directory
1. Create and delete directories mkdir
Copy CodeThe code is as follows:
if
Directory1. Character test function2. String manipulation functions3. Memory management function4. Date and Time function5. Mathematical Functions6. File Operation function7. Process management functions8. File Permission control function9. Signal
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
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
Often need to use Excel, or put some data in Excel open, the program can generate CVS format files, so that Excel opened and processed, and then found a processing CVS C + + class to share with youThe source code cannot be found:The code is as
1. File WriteAppend method:void Appendwt () {FILE *pfile = fopen ("Data.txt", "ab+");//Use "ab+" each time to insert to the last face, call Fseek also useless char *str= "hello,world!45% 13ad2014/23/13add\n "; Fwrite (Str,1,strlen (str), pFile);
---restore content starts---Copy of 1.linux standard IO#include int main (int argc,char **argv){if (argc{printf ("Use:mycp file1 file2\n");return-1;}File *src=fopen (argv[1], "R");// Open source fileif (src==null){printf ("No
Transferred from: http://blog.csdn.net/cashey1991/article/details/6769038@1. Description of the problem:C and C + + beginners often use a one-line read file method to the file data processing. However, there are often situations where a file needs
In the absence of an IDE, it is necessary to remember the function names, parameters, basic usage, and considerations of some commonly used library functions.Referring to the Linux_c_hs.chm directory, I have roughly divided the usual functions into
PHP Function Index 967 functions
A total of 967 functions
Abs: Get absolute value.
Acos: Gets the inverse cosine value.
Ada_afetch: Gets the return column of the database.
Ada_autocommit: Switch automatic change function.
Ada_close: Close Adabas D
Simplifies the glog, only retains the function of writing log files, only to rewrite the Linux version, the win version is not rewritten, you can useLog (INFO) Log_if (info,condition) You can also call the Log Class Logger::getinstance () directly.
1. size_t fread (void * ptr, size_t size, size_t nmemb, FIFE *stream);size_t fwrite (const void *ptr, size_t size, size_t nmemb, FILE * stream);The number of NMEMB returned is the object is not a byte.2. Wait: Blocking, waiting to accept the child
This article is used to record common file manipulation functions in Linux programming, including system calls and library functions, for review.One problem with direct use of the underlying system calls for input and output operations is that they
1http Brief IntroductionHTTP Hypertext Transfer Protocol: Host address: Port/urlHost is resolved to an IP address by the DNS server, so you can sometimes use the domain name directly,HTTP default Access 80 port, HTTPS default Access 443 portThe
Isalnum determines whether a character is a number or letter of a character classIsalpha determine if a character is a letterIsblank determines whether a character is a white space character (space, Horizontal tab, TAB)Iscntrl judge a control
Executes an external program or an external instruction that enters the command. The return string is only the last line returned after the external program executes, and you can use PassThru () if you need to return the information
The benefits of FTP downloads I'm not going to say much here, but many projects will be implemented as an important feature of FTP downloads. The WinInet classes offered by Microsoft can take advantage of the following functions: InternetOpen;
For Linux to get file size, there are several ways, the first is more obvious scheme, call the stat way, this way to get the file size directly, more obvious, the remaining two ways are indirect way, the file cursor point to the end of the file, and
C language Setlinebuf () function: Set file stream to linear bufferheader file:
#include
To define a function:
void Setlinebuf (FILE * stream);
Function Description: Setlinebuf () is used to set the file stream to change
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.