File: testmemalign.c

package info (click to toggle)
zmailer 2.99.51.52pre3-2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 16,596 kB
  • ctags: 7,422
  • sloc: ansic: 90,470; sh: 3,608; makefile: 2,784; perl: 1,585; python: 115; awk: 22
file content (16 lines) | stat: -rw-r--r-- 261 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
int
main()
{
    extern char *memalign();
    char *cp;

    if ((cp = memalign(2, 1024)) == 0)
	perror("memalign 2");
    if ((cp = memalign(3, 1024)) == 0)
	perror("memalign 3");
    if ((cp = memalign(4, 1024)) == 0)
	perror("memalign 4");

    return 0;
}