在linux停使用strtol库函数需要包含哪个头文件,在window下是#include 求解

在linux下使用strtol库函数需要包含哪个头文件,在window下是#include <stdlib.h>,急求解!
如题,在linux下使用strtol库函数需要包含哪个头文件,在window下是#include <stdlib.h>,急求解!!!

------解决方案--------------------
<stdlib.h>
man一下就知道了。。
------解决方案--------------------
STRTOL(3)                  Linux Programmer's Manual                 STRTOL(3)

NAME
       strtol, strtoll, strtoq - convert a string to a long integer

SYNOPSIS
       #include <stdlib.h>

       long int strtol(const char *nptr, char **endptr, int base);

       long long int strtoll(const char *nptr, char **endptr, int base);

   Feature Test Macro Requirements for glibc (see feature_test_macros(7)):

       strtoll():
           XOPEN_SOURCE >= 600 
------解决方案--------------------
 _BSD_SOURCE 
------解决方案--------------------
 _SVID_SOURCE 
------解决方案--------------------

           _ISOC99_SOURCE 
------解决方案--------------------
 _POSIX_C_SOURCE >= 200112L;
           or cc -std=c99



记住man

------解决方案--------------------
请楼主说下为什么不行.
在你的主机man strtol 能看到所在的头文件。
------解决方案--------------------
奇了个怪了,因为你的问题,我特意开CentOS,装了一个gcc,g++,反复测试了一下,包含stdlib.h没有任何问题,使用函数strtol也没有任何问题。

大哥,不要玩人啊。
------解决方案--------------------
没有就不会改用
long l;
char str[]="12345678";
int rc;
rc=sscanf(str,"%ld",&l);
if (1==rc) printf("%ld\n",l);//12345678
吗?
------解决方案--------------------
多半环境就没有整好。

------解决方案--------------------
你再驱动层使用驱动提供给应用层的API?这个逻辑有些~……&#