资源简介
tcl linux 自动登录脚本控制工具。
代码片段和文件信息
/*
* fixstrtod.c --
*
* Source code for the “fixstrtod“ procedure. This procedure is
* used in place of strtod under Solaris 2.4 in order to fix
* a bug where the “end“ pointer gets set incorrectly.
*
* Copyright (c) 1995 Sun Microsystems Inc.
*
* See the file “license.terms“ for information on usage and redistribution
* of this file and for a DISCLAIMER OF ALL WARRANTIES.
*/
#include
#undef strtod
/*
* Declare strtod explicitly rather than including stdlib.h since in
* somes systems (e.g. SunOS 4.1.4) stdlib.h doesn‘t declare strtod.
*/
extern double strtod(char * char **);
double
fixstrtod(
char *string
char **endPtr)
{
double d;
d = strtod(string endPtr);
if ((endPtr != NULL) && (*endPtr != string) && ((*endPtr)[-1] == 0)) {
*endPtr -= 1;
}
return d;
}
- 上一篇:ob
jectARX自定义实体简单 - 下一篇:信号与系统电子教案-王松林
相关资源
- uboot到linux logo显示不间断 补丁
- TCL-S1916 ,1924交换机管理程序
- UNIX/LINUX编程实践教程的源码
- Linux任务管理器
- linux应用层的华容道游戏源代码
- ubuntu9.10 可加载内核模块和字符设备驱
- MP3文件ID3v2ID3v2APEv2标签读取
- 操作系统实验——虚存管理实验
- linux下的发包工具sendip
- 尚观培训linux许巍关于c 的笔记和讲义
- 尚观培训linux董亮老师关于数据结构的
- linux 线程池源码 c 版
- linux C 电梯程序练习
- linux下用多进程同步方法解决生产者
- Linux 操作系统实验(全)
- Linux From Scratch 中文手册
- linux 网络实验 ftp程序
- Linux命令大全离线版&在线版
- 操作系统共享内存实验
- dos 下运行Linux 命令--gnu_utils
- linux 0.12内核源代码
- linux简易shell C实现
- linux实验报告及心得体会
- 基于GTK的Linux环境下的简易任务管理器
- linux扫雷游戏代码
- CAN Linux驱动代码
- Linux系统教材
- intel 82579LM 网卡驱动Linux系统版 v1.9.
- SA1110处理器掌上电脑液晶显示器设计
- 基于Linux的串口服务器设计
评论
共有 条评论