可以参考这个:http://net.pku.edu.cn/~yhf/linux_c//第三章   文件IO*****************************
原创 2022-06-09 20:28:32
228阅读
区分一个文件或者目录的更改时间(change time,ctime),访问时间(access time,atime)以及修改时间(modify time,mtime)很重要。ctime——在Unix中,基本是无法知道一个文件的精确创建时间。更改时间(ctime)是指文件或者目录的属性(所有者、权限等等)被更改的时间。ctime在文件的内容改变的时候也会改变。如果一个文件需要备份的话,dump命令需
本文转载于:[url]http://www.91linux.com/html/article/program/cpp/20071203/8774.html[/url]有点多阿 ,但很丰富。各位Linux爱好者:   你好!本人有幸在坊间得到一名为“Linux C 函数参考”的文本文件,并在此基础重新排版并制成html文件以方便广大爱好者阅读,我感到无比的荣幸。在此多谢各位的鼎力支持,以及日益完
转载 精选 2008-07-31 11:13:25
5096阅读
字符测试篇isalnumisalphaisasciiiscntrlisdigitisgraphisislowerisprintisspaceispunctisupperisxdigit字符串转换篇atofatoiatolgcvtstrtodstrtolstrtoultoasciitolowertoupper内存控制篇callocfreegetpagesizemallocmmapmunmap日期时间
转载 2014-11-10 01:26:00
85阅读
http://net.pku.edu.cn/~yhf/linux_c/
转载 2022-09-13 08:23:40
79阅读
///////////////printf()%d 整数%f 浮点
原创 2023-05-17 11:42:46
101阅读
好东西当然要转,嘿嘿。1,系统调用 文件的操作函数#inlclude <fcntl.h>int open(char *name,int how) 第二个参数,O_RDONLY O_WRONLY O_RDWR O_CREAT#include <unistd.h>int close(int fd)size_t read(int fd,void *buf, size_t coun
转载 2024-03-21 21:11:51
50阅读
struct timezone tz; struct timeval stHandleHistoryRecordFactlyStartTime; struct timeval stHandleHistoryRecordFactlyEndTime; gettimeofday(&stHandleHistoryRecordFactlyStartTime,&tz); dosomething();//处理一些函数的时间 gettimeofday(&stHandleHistoryRecordFactlyEndTime,&tz); int iHandleHistory...
转载 2011-12-28 09:18:00
57阅读
2评论
Linux常用函数是在Linux操作系统中经常使用的一些函数。这些函数提供了一系列功能,包括文件操作、进程管理、内存管理、网络通信等。在开发Linux应用程序和系统管理过程中,熟悉和掌握这些常用函数是非常重要的。 首先,我们来看一下文件操作相关的常用函数。在Linux中,与文件操作相关的函数主要包括open、read、write和close函数。open函数用于打开文件,并返回一个文件描述符,通
原创 2024-02-02 10:54:57
65阅读
1. string转int类型 采用标准库cstdlib中atoi函数,<cstdlib>是C++里面的一个常用函数库 #include<cstdlib> string str = "55"; int tmp = std::atoi(str.c_str()); 2.内置类型转string 比如:in ...
转载 2021-08-23 11:31:00
176阅读
2评论
原文地址标准头文件包括:<asset.h>      <ctype.h>       <errno.h>       <float.h>  <limits.h>      <locale.h>       <math.h>        <setjmp.h> &l
转载 2022-11-02 15:07:58
78阅读
原文地址:C#常用函数作者:苗彦朋Abs(number) 取得数值的绝对值。Asc(String) 取得字符
转载 2023-01-05 12:49:23
136阅读
暂停: Sleep(3000); //暂停3秒 S要大写 //需要 #include<windows.h> 获取变量类型: int i; char aa[20]; strcpy_s(aa, typeid(i).name()); //获取变量的类型 //返回值类型:char * //需要 #inclu
原创 2022-02-10 11:57:35
327阅读
from: http://hi.baidu.com/leowang715/blog/item/1362bbedb98104db2f2e21bb.html sprintf:由于sprintf 跟printf 在用法上几乎一样,只是打印的目的地不同而已,前者打印到字符串中,后者则直接在命令行上输出。sprintf 是个变参函数,定义如下:  int sprintf( char *buffer, co
原创 2012-05-02 10:34:08
747阅读
1、CreateThread创建线程HANDLE WINAPICreateThread(       _In_opt_ LPSECURITY_ATTRIBUTESlpThreadAttributes,       _In_ SIZE_T dwStackSize, &nb
原创 2015-05-18 11:16:22
3221阅读
1、DateTime 数字型 System.DateTime currentTime=new System.DateTime(); 1.1 取当前年月日时分秒 currentTime=System.DateTime.Now; 1.2 取当前年 int 年=currentTime.Year; 1.3 取当前月 int 月=currentTime.Month; 1.4 取当前日 int 日=curre
转载 精选 2009-05-28 15:33:34
807阅读
目录1、strstr()2、void *memset(void *s, int ch, size_t n)
原创 2021-07-06 15:58:59
346阅读
...
原创 2021-08-13 14:26:21
258阅读
BCB函数集 1。内存分配 函数名称 AllocMem 函数说明 在队中分配指定字节的内存块,并将分配的每一个字节初始化为 0.函数原型如下: void * __fastcall AllocMem(Cardinal Size); 函数名称 SysFreeMem 函数说明 释放所指定的内存块.函数原型
.erase(i,l)i的位置开始删除长度为l的子串.erase(3); 3后面全删完.substr(3,2); 从下标3的位置取长度为2的子串.substr(3); 从下标3的位置开始的子串reverse(s.begin(),s.end()); 翻转s串string::iterator i,j; 迭代器 类似指针/*s.erase(3,1) 从3的位置...
原创 2022-03-13 14:17:51
91阅读
  • 1
  • 2
  • 3
  • 4
  • 5