File: atoul.c

package info (click to toggle)
ifmail 2.14tx8.10-32
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,056 kB
  • sloc: ansic: 30,328; perl: 4,955; yacc: 839; makefile: 716; sh: 424; cpp: 235; lex: 206; awk: 24
file content (13 lines) | stat: -rw-r--r-- 196 bytes parent folder | download | duplicates (17)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <stdio.h>
#include <string.h>

unsigned long atoul(char*);
unsigned long atoul(str)
char *str;
{
	unsigned long x;

	if (sscanf(str,"%lu",&x) == 1)
		return x;
	else return 0xffffffff;
}