home *** CD-ROM | disk | FTP | other *** search
- #include <stdio.h>
- #include <stdlib.h>
-
- #ifdef __GNUC__
- /* minimal stuff */
-
- #include <minimal.h>
- #include <stdarg.h>
-
- int printf(const char *fmt,...)
- {
- va_list args;
- char buf[128];
- va_start(args,fmt);
- vsprintf(buf,fmt,args);
- Cconws(buf);
- return 0;
- }
-
- #undef putchar
- #define putchar(c) Cconout(c)
- #endif
-
- int main( int argc, char ** argv, char **envp )
- {
- printf("Largest block is %ld\r\n", Malloc(-1) );
- return 0;
- }
-