Mercurial > mxe-octave
annotate src/libiberty-test.c @ 2333:f653602a0500
Rebrand to new project name MXE
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Wed, 28 Mar 2012 15:46:58 +0200 |
parents | 3c2b40d19505 |
children | 8a6c466753e2 |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
2292
diff
changeset
|
1 /* This file is part of MXE. */ |
2292 | 2 /* See doc/index.html for further information. */ |
3 | |
4 #define _GNU_SOURCE | |
5 #include <stdio.h> | |
6 #include <stdlib.h> | |
7 #include <libiberty.h> | |
8 | |
9 int main(int argc, char *argv[]) | |
10 { | |
11 char *s; | |
12 | |
13 (void)argc; | |
14 (void)argv; | |
15 | |
16 if (asprintf(&s, "Test%i", 123) >= 0) { | |
17 printf("asprintf output: %s\n", s); | |
18 free(s); | |
19 return 0; | |
20 } else { | |
21 printf("asprintf() failed!\n"); | |
22 return 1; | |
23 } | |
24 } |