End User License Agreement

guarantees or warranties,大战前得磨刀!!!!!

Tips:C Funcs Chk header Modules!

<一>Characters of the test piece(on the street stalls)

1,isalnum()

related functions English alphabet English letters Alphabet,Arabic numerals digital

header file

digit

isalnum(alphabet,digit arabic numberals)

检查字符是否为英文字母

macro definition

paradigm

字符数组元素枚举即长度范围控制及数组长度在for循环中长度的控制

strlen(),sizeof()

for(i = strlen(str);i>=0;i--)

编程,技术 就是想点子 换着法子玩 ,输,赢?就比谁会玩否?

输赢就决定在一个玩字上(pro 思想)!

2,isascii() 检测指定的参数是否为ascii即指定字符的%d 值是否在0~127之间

3,iscntrl() ascii码的控制字符(0~30),ascii范围(0~127)

允许在 C99 模式下使用‘for’循环初始化声明, -std=c99 或 -std=gnu99 来编译codes

4,isgraphis() 指定字符是否是Ascii可打印字符且非空格

tips:

5,islower(),给定的字符是否为小写字母,True

6,isprint()测试字符是否为可打印字符(包括空格),与isgraph(不包括空格)的区别在于空格上

flip over

'\f','\n','\v','\r','\t'

7,isspace()测试字符是否为空格字符,判断是否为空格(''),定位字符('\t'),CR('\r'),换行('\n'),垂直定位字符('\v'),翻页('\f')
找出字符串中空格字符,并显示空格字符的ASCII

8,ispunct()测试字符是否为标点符号 or 特殊符号(非空格数字英文字母)
是则 return True,不是则返回NULL

9,double atof(const char *nptr);将字符串转换成浮点型数
atof函数的的默认唯一参数类型是常量字符指针
atof()扫描参数nptr字符串,跳过前面的空格字符,直到遇上数字或±符号才开始转换,再遇到非数字或字符串结束时('\0')才结束转换,返回结果

10,atol(),atoi()转换convert字符串 -> float,int,long

tips

11,gcvt()将浮点型数据类型转换成字符串,四舍五入

char *gcvt(double number,size_t ndigits,char *buf);
gcvt()用来将参数number转换成ASCII码字符串,参数ndigits表示显示的位数,gcvt所转换后的字符串包含小数点和正负符号,转换后的字符串会存放的参数buf所指的空间
gcvt(double number,size_t ndigits,char *buf)函数返回值为

12,strtod(const char *nptr,char **endptr)字符串转换成浮点数

strtol

13,toascii()将整型数转换成ascii

tolwer()

14,C func modules

15 toupper()

16,void *calloc(size_t nmemb,size_t size);
calloc()用来配置nmemb个相邻的内存单位,每一单位的大小为size,并返回指向第一个元素的指针,这和使用下列的方式效果相同,maclloc(nmemb* size),在利用calloc()配置内存时会将内存内容初始化为0

17,void free(void *ptr);
参数ptr为指向先前由malloc(),calloc() or realloc()所返回的内存指针,调用free()后ptr所指的内存空间便会被收回,假若参数ptr所指的内存空间已经被收回或是未知的内存地址,则调用free()可能会有无法预测的情况发生,若参数ptr为NULL,则free()不会有任何作用

18,getpagesize(获取系统内存分页大小,非硬件内存分页)
#include <unistd.h>
//size_t getpagesize(void);
int main(void)
{
    printf("page size = %d \n",getpagesize());
}

only macro define not real functation

19,void *malloc(size_t size);
malloc()用来配置内存空间,其大小由指定的sizeof决定,配置成功则返回一指针,失败则返回NULL;

void *p = malloc(1024bytes); /*配置1k的内存*/
bytes = 1024/bits

20,nmap()

21,asctime() Segmentation fault (core dumped)

char *asctime(const struct tm *timeptr);
asctime()将参数timeptr所指的tm结构中的信息转换成真实世界所使用的时间日期

#incude <stdio.h>

#include <time.h>

int main()

{

  time_t timep;

  time(&timep);

  printf("%s",asctime(gtime(&timep)));

}

22,ctime(const time_t *timep)

23,int gettimeofday(struct timeval * tv,struct timezone * tz)
struct timeval{
    long tv_sec;
    long tv_usec;//microsecond usec second
}
struct timezone{
    int tz_minuteswest; //和Greenwich
    int tz_dsttime;
}

24,gmtime()

25,mktime(将时间结构数据转换成经过的seconds)
time_t mktime(struct tm * timeptr);mktime()用来将参数timeptr所指的tm结构数据转换成从公元1970年1月1日0时0分0秒算起至今的UTC时间 所经过的seconds;
用time()取得时间(seconds),再利用localtime()转换成struct tm

26,

<二,>String conversion article

3,Memory control article

4,The date time

5,Memory and string operations

6,Common mathematical functions

7,User group article

8,Data structure and algorithm

9,File operations article

10,Operation of the contents of the documents

11,Process operating post

12,File permissions control article

13,The signal processing article

14,Interface processing article

15,The environment variable article

16,Terminal control article

linux c in common use function reference manual的更多相关文章

  1. MySQL :: MySQL 8.0 Reference Manual :: B.6.4.3 Problems with NULL Values https://dev.mysql.com/doc/refman/8.0/en/problems-with-null.html

    MySQL :: MySQL 8.0 Reference Manual :: B.6.4.3 Problems with NULL Values https://dev.mysql.com/doc/r ...

  2. ePass1000 Full ActiveX Control Reference Manual Version 2.0

    ePass1000 Full ActiveX Control Reference Manual Version 2.0 Error Code Value Return Status Descripti ...

  3. 阅读Cortex-A53 Technical Reference Manual笔记

    1. 前言 一颗芯片最主要的就是CPU核了,处理CPU Core之外,还存在很多其他IP,包括Graphical.Multimedia.Memory Controller.USB Controller ...

  4. OpenCASCADE6.8.0 Reference Manual Serach Problem

    OpenCASCADE6.8.0 Reference Manual Serach Problem eryar@163.com 1. Problem 有网友反映OpenCASCADE6.8.0的Refe ...

  5. MySQL :: MySQL 5.0 Reference Manual :: 14.4 The MEMORY (HEAP) Storage Engine

    MySQL :: MySQL 5.0 Reference Manual :: 14.4 The MEMORY (HEAP) Storage Engine The MEMORY (HEAP) Stora ...

  6. Lua 5.2 Reference Manual

    Lua 5.2 Reference Manual.pdf

  7. Selenium 运行时出现错误(java.lang.NoClassDefFoundError: com/google/common/base/Function)

    已经写好了java脚本,点击运行的过程中如果出现如下的错误提示时: java.lang.NoClassDefFoundError: com/google/common/base/Function 问题 ...

  8. MySQL 5.7 Reference Manual :: 4.5.4 mysqldump & mysql — Database Backup & Restore Program

    MySQL :: MySQL 5.7 Reference Manual :: 4.5.4 mysqldump — A Database Backup Programhttps://dev.mysql. ...

  9. Exception in thread "main" java.lang.UnsupportedClassVersionError: com/google/common/base/Function : Unsupported major.minor version 52.0的解决办法(图文详解)

    不多说,直接上干货! 问题详情 Exception in thread "main" java.lang.UnsupportedClassVersionError: com/goo ...

随机推荐

  1. 2 kNN-K-Nearest Neighbors algorithm k邻近算法(一)

    给定训练数据样本和标签,对于某测试的一个样本数据,选择距离其最近的k个训练样本,这k个训练样本中所属类别最多的类即为该测试样本的预测标签.简称kNN.通常k是不大于20的整数,这里的距离一般是欧式距离 ...

  2. Oracle提示“资源正忙,需指定nowait”的解决方案

    Oracle提示“资源正忙,需指定nowait”的解决方案  | T 本文我们主要介绍了Oracle数据库操作表时提示“资源正忙,需指定nowait”的解决方案,希望能够对您有所帮助. AD:51CT ...

  3. WEB Application Development Integrator : 应用设置

    1.1.       系统安装 应用 Oracle EBS WEB Application Development Integrator WEB ADI在Oracle EBS 11.5.10.* 版本 ...

  4. 無塵室(Clean Room)的級數標準規格

    無塵室又稱潔淨室,是將一定空間範圍內空氣的微塵粒子.有害氣體.細菌等之污染物控制在一定的數量內.無塵室的等級是以一立方英呎含有多少大於0.5um的微塵粒子來定義的.下表是根據「美國聯邦標準209D規格 ...

  5. 关于“#ifdef __cplusplus”

    CC++语言在编译的时候为了解决函数的多态问题,会将函数名和参数联合起来生成一个中间的函数名称,而C语言则不会,因此会造成链接时找不到对应函数的情况,此时C函数就需要用extern “C”进行链接指定 ...

  6. Cortex-M3学习日志(二)-- 按键实验

    有输出总会有输入,今天测试一下按键的功能,第一节已经说过了与GPIO端口相关的寄存器,这里不在重复,想要从端口读取数据,首先把FIODIR这个寄存器设置为输入,再从FIOPIN寄存器读取数据就可以了, ...

  7. Xamarin生成的APK大小分析

    原文:Xamarin生成的APK大小分析 刚接触Xamarin都会被Xamarin的售价吓一跳,另外就是它生成的APK大小,官方也有相关的说明,这里加上自己的理解同意讲解下: 以下是针对Android ...

  8. C++中顶层const和底层const

    1. 顶层 const 与底层 const 概念 指针本身是一个对象,由于,指针实际相应着内存单元的一段存储空间,然而,指针所指向的也是一个数据对象,因此,指针是一个常量与指针所指向的是一个常量是两个 ...

  9. win8.1 安装webaccess遇到的写访问权限错误

    大学的时候闲暇时间都用来玩游戏了,现在工作了,就把工作中遇到的问题和学习心得跟大家共享下,若有不对的地方欢迎指出,谢谢! 前几天突然想换用vs2013开发,就重装了win8.1系统,在新系统上安装we ...

  10. iframe自适应高度代码

    var adjustIframe = function (id) { var iframe = document.getElementById(id) var idoc = iframe.conten ...