Mercurial > mxe-octave
view src/libiberty-test.c @ 4308:411ddca4207f
More dont install dependancy docs
* src/tiff.mk: add MXE_DISABLE_DOCS to install
* Makefile.in: add dist_manX_MANS targets to MXE_DISABLE_DOCS
* src/pcre.mk: remove html and man pages from installed files
* src/libssh2.mk: add MXE_DISABLE_DOCS to install
author | John D |
---|---|
date | Sat, 31 Dec 2016 09:54:08 -0500 |
parents | 99516e73b368 |
children |
line wrap: on
line source
/* * This file is part of MXE. * See index.html for further information. */ #define _GNU_SOURCE #include <stdio.h> #include <stdlib.h> #include <libiberty.h> int main(int argc, char *argv[]) { char *s; (void)argc; (void)argv; if (asprintf(&s, "Test%i", 123) >= 0) { printf("asprintf output: %s\n", s); free(s); return 0; } else { printf("asprintf() failed!\n"); return 1; } }