Move some System.err to Debugging.debugNote.
[SquirrelJME.git] / nanocoat / cmake / tryVSNPrintFV.c
blob52a7bc570c86811832668042e38b30a8a0dcb251
1 /* -*- Mode: C; indent-tabs-mode: t; tab-width: 4 -*-
2 // ---------------------------------------------------------------------------
3 // SquirrelJME
4 // Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
5 // ---------------------------------------------------------------------------
6 // SquirrelJME is under the Mozilla Public License Version 2.0.
7 // See license.mkd for licensing and copyright information.
8 // -------------------------------------------------------------------------*/
10 #include <varargs.h>
11 #include <stdio.h>
13 int whatever(char* format, ...)
15 char buf[256];
16 va_list args;
17 int result;
19 va_start(args, format);
21 result = vsnprintf(buf, 256, "Squeak!", args);
23 va_end(args);
25 return result;
28 int main(int argc, char** argv)
30 whatever("Squeak!", argc, argv);
31 return 0;