projects
/
platform
/
upstream
/
rpm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Doxygen annotations.
[platform/upstream/rpm.git]
/
build
/
misc.c
1
/** \ingroup rpmbuild
2
* \file build/misc.c
3
*/
4
#include "system.h"
5
6
#include "rpmbuild.h"
7
8
/** */
9
int parseNum(const char *line, int *res)
10
{
11
char *s1;
12
13
s1 = NULL;
14
*res = strtoul(line, &s1, 10);
15
if ((*s1) || (s1 == line) || (*res == ULONG_MAX)) {
16
return 1;
17
}
18
19
return 0;
20
}