File: sysdeptest.c

package info (click to toggle)
f2c 20160102-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,668 kB
  • sloc: ansic: 26,850; sh: 246; makefile: 12
file content (23 lines) | stat: -rw-r--r-- 408 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* This is never meant to be executed; we just want to check for the */
/* presence of mkdtemp and mkstemp by whether this links without error. */

#include <stdio.h>
#include <unistd.h>

 int
#ifdef KR_headers
main(argc, argv) int argc; char **argv;
#else
main(int argc, char **argv)
#endif
{
	char buf[16];
	if (argc < 0) {
#ifndef NO_MKDTEMP
		mkdtemp(buf);
#else
		mkstemp(buf);
#endif
		}
	return 0;
	}