Location:
Search - atoi
Search list
Description: 这是一个字符串到整型的转换,在很多程序设计中,这个小模块被频繁使用到。-This program implements the transformation of string to integer.This module is often used in many other program.
Platform: |
Size: 7859 |
Author: 孙江萍 |
Hits:
Description: 参阅atoi()后,实现我自己的my_atoi(),很不错的:)-refer loop (), the realization of my own my_atoi (), is very good :)
Platform: |
Size: 938 |
Author: 秦征 |
Hits:
Description: 这是一个字符串到整型的转换,在很多程序设计中,这个小模块被频繁使用到。-This program implements the transformation of string to integer.This module is often used in many other program.
Platform: |
Size: 183296 |
Author: 孙江萍 |
Hits:
Description: 参阅atoi()后,实现我自己的my_atoi(),很不错的:)-refer loop (), the realization of my own my_atoi (), is very good :)
Platform: |
Size: 1024 |
Author: 秦征 |
Hits:
Description: token,字符数组,长度为32,存放识别出来的单词符号。
tmp,字符数组,长度为256,可以缓存用户输入的字符串。
char *fgets(char *string, int n, *stdin):*string输入数据的首地址, n 一次读入数据块的长度, stream文件指针.
Void getbc() //检查ch中的字符是否为空白字符,如是则调用getch(),直到ch中读入一个非空白字符为止.
fgets() //从流中读取一字符串
Void getch() //读字符函数,从输入缓冲区读入写一个字符放在ch中,并指向下一个字符。
int stricmp(const char *s1,const char *s2) 比较字符串s1与s2的大小,并返回s1-s2.
int atoi(char *nptr) 将字符串nptr转换成整型数, 并返回这个数,错误返回0.
int reserve() //对token中的字符串查关键字表,若是则返回关键字,否则返回15.-err
Platform: |
Size: 1024 |
Author: 乐正清 |
Hits:
Description: 整数转换成字符串itoa函数的实现与字符串转换成整数atoi函数的实现-Itoa convert integer string function with string into an integer implementation of atoi function
Platform: |
Size: 1024 |
Author: weigao |
Hits:
Description: 实现字符串转换为整数的函数功能,附带exe文件,运行正常-atoi
Platform: |
Size: 28672 |
Author: flower |
Hits:
Description: 把字符串转换成整型数
atoi()会扫描参数nptr字符串,如果第一个字符不是数字也不是正负号返回零,否则开始做类型转换,之后检测到非数字或结束符 \0 时停止转换,返回整型数。- const
Platform: |
Size: 1024 |
Author: 王振 |
Hits:
Description: 用C语言编写的Unix代码实例 供大家参考 -#include <sys/sem.h>
#include <sys/types.h>
#include <sys/ipc.h>
#include <stdio.h>
#include <sys/stat.h>
#define VERIFYERR(a, b) if (a) fprintf(stderr, " s failed.\n", b) else fprintf(stderr, " s success.\n", b)
void main(int argc, char*argv[])
{
int semid, index, i
struct semid_ds ds
unsigned short array[100]
if (argc != 4) return
semid = atoi(argv[1])
index = atoi(argv[2])
if (argv[3][0] == c )
{ /* 创建信号量*/
VERIFYERR(semget(semid, index, 0666|IPC_CREAT|IPC_EXCL) < 0, "Create sem")
}
else if (argv[3][0] == d )
{ /* 删除消息队列*/
VERIFYERR(semctl(semid, 0, IPC_RMID, NULL) < 0, "Delete sem")
}
else if (argv[3][0] == v )
{ /* 查看信号量信息*/
fprintf(stderr, "T ID INDEX SEMVAL SEMPID SEMNCNT SEMZCNT\n")
fprintf(stderr, "s 6d 6d 10d 10d 10d 10d\n",
semid, /* 标识号*/
index, /* 信号量序号*/
semctl(semid, index, GETVAL), /* 信号量值*/
semct > Downloads > 源码/资料
Platform: |
Size: 150528 |
Author: netdavid |
Hits:
Description: < atoi> converts the initial portion of a string to an <<int>>.-<<atoi>> converts the initial portion of a string to an <<int>>.
Platform: |
Size: 1024 |
Author: 李文志 |
Hits:
Description: 自己编写的atoi函数,字符串倒序,线程创建和管道创建,已经测试过了,没什么问题,希望对大家有点帮助!-I have written atoi function, string reverse, thread creation and pipeline creation, has been tested, no problem, we want a little help!
Platform: |
Size: 2048 |
Author: 谢元虎 |
Hits:
Description: 将字符串转化为整数的方法,不用atoi函数-Integer string into the method, do not atoi function
Platform: |
Size: 598016 |
Author: zhenqingkai |
Hits:
Description: 字符串与整型数的相互类型转化-atoi()函数和itoa()函数的写法~ -Between the string and integer type conversion-atoi and itoa simple wording ~
Platform: |
Size: 4096 |
Author: 李风 |
Hits:
Description: 这是一个工程,包括了所有组成aToI 应用的文件。可以直接在编译器里运行。-This file contains a summary of what you will find in each of the files that
make up your aToI application.
Platform: |
Size: 220160 |
Author: Anhui Huang |
Hits:
Description: 语言提供了几个标准库函数,可以将任意类型(整型、长整型、浮点型等)的数字转换为字符串.-Language provides several standard library functions can be any type (integer, long integer, floating point, etc.) number into a string.
Platform: |
Size: 6144 |
Author: 王书政 |
Hits:
Description: 字符串和整形互相转换函数atoi,itoa函数原型
认识两个函数以及用法-String and plastic interchangeable function atoi, itoa function prototype
Platform: |
Size: 18432 |
Author: hpp |
Hits:
Description: 字符串和整形互相转换函数atoi,itoa函数原型认识两个函数以及用法-String and plastic interchangeable function atoi, itoa function prototype
Platform: |
Size: 18432 |
Author: rowthof |
Hits:
Description: 个人积累的一些系统函数的实现,这里是atoi函数的实现源码。atoi()
implatation-atoi codes
Platform: |
Size: 733184 |
Author: 夏雨 |
Hits:
Description: 自己写的atoi函数,实现了所有库函数atoi拥有的功能-A atoi function write by myself, full realization of library atoi function
Platform: |
Size: 30720 |
Author: TuZZiX |
Hits:
Description: atoi函数的实现,注意溢出和 ( -01 256)类似字符串-realize atoi function, attention overflow and (-01,256) similar string
Platform: |
Size: 1024 |
Author: 杜 |
Hits: