repo.or.cz
/
neatlibc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
unistd: add execvp()
[neatlibc.git]
/
stdarg.c
blob
044aa7818893f161e399dfe7bea5e0122308a1b5
1
#include <stdarg.h>
2
3
#define ALIGN(x, a) (((x) + (a) - 1) & ~((a) - 1))
4
5
void
*
__va_arg
(
void
**
ap
,
int
size
)
6
{
7
void
*
ret
= *
ap
;
8
*
ap
+=
ALIGN
(
size
,
4
);
9
return
ret
;
10
}