source: zzuf/trunk/test/zznop.c @ 3971

Last change on this file since 3971 was 3971, checked in by Sam Hocevar, 10 years ago

Add zznop, a small test program to help debug the Win32 port.
Also add check-build from libcaca to test that msvc/config.h is
up to date.

File size: 861 bytes
Line 
1/*
2 *  zznop - almost empty program that does almost nothing
3 *  Copyright (c) 2009 Sam Hocevar <sam@hocevar.net>
4 *                All Rights Reserved
5 *
6 *  $Id$
7 *
8 *  This program is free software. It comes without any warranty, to
9 *  the extent permitted by applicable law. You can redistribute it
10 *  and/or modify it under the terms of the Do What The Fuck You Want
11 *  To Public License, Version 2, as published by Sam Hocevar. See
12 *  http://sam.zoy.org/wtfpl/COPYING for more details.
13 */
14
15#include "config.h"
16
17#include <stdio.h>
18
19#if defined HAVE_WINDOWS_H
20#   include <windows.h>
21#endif
22
23int main(void)
24{
25#if defined HAVE_WINDOWS_H
26    AllocConsole();
27
28    fprintf(stderr, "About to call LoadLibraryA()\n");
29    LoadLibraryA("whatever");
30    fprintf(stderr, "Finished calling LoadLibraryA()\n");
31
32    getchar();
33#endif
34
35    return EXIT_SUCCESS;
36}
37
Note: See TracBrowser for help on using the repository browser.