Mercurial > mxe-octave
annotate src/libiberty-test.c @ 3948:1fea617cdf13
of-odepkg: update to v0.8.5
* src/of-odepkg.mk: update version, checksum, compile if binary package
* build_packages.m: add odepkg back to install script
* Makefile.am: add of-odepkg back to installed of packages
author | John Donoghue |
---|---|
date | Thu, 21 May 2015 13:51:16 -0400 |
parents | 99516e73b368 |
children |
rev | line source |
---|---|
2351
8a6c466753e2
Improve comment style of all test programs
Volker Grabsch <vog@notjusthosting.com>
parents:
2333
diff
changeset
|
1 /* |
8a6c466753e2
Improve comment style of all test programs
Volker Grabsch <vog@notjusthosting.com>
parents:
2333
diff
changeset
|
2 * This file is part of MXE. |
2353
99516e73b368
Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents:
2351
diff
changeset
|
3 * See index.html for further information. |
2351
8a6c466753e2
Improve comment style of all test programs
Volker Grabsch <vog@notjusthosting.com>
parents:
2333
diff
changeset
|
4 */ |
2292 | 5 |
6 #define _GNU_SOURCE | |
7 #include <stdio.h> | |
8 #include <stdlib.h> | |
9 #include <libiberty.h> | |
10 | |
11 int main(int argc, char *argv[]) | |
12 { | |
13 char *s; | |
14 | |
15 (void)argc; | |
16 (void)argv; | |
17 | |
18 if (asprintf(&s, "Test%i", 123) >= 0) { | |
19 printf("asprintf output: %s\n", s); | |
20 free(s); | |
21 return 0; | |
22 } else { | |
23 printf("asprintf() failed!\n"); | |
24 return 1; | |
25 } | |
26 } |