cosmopolitan/examples/package/lib/myprint.c

20 lines
382 B
C
Raw Normal View History

#include "examples/package/lib/myprint.h"
#include "libc/stdio/stdio.h"
2020-06-18 23:14:47 +00:00
/**
* Calls MyPrint2() indirected via assembly function.
*/
void MyPrint(const char *s) {
MyAsm(s);
}
2020-06-18 23:14:47 +00:00
/**
* Prints string to output.
*
* @param s is null-terminated c string usually having \n
* @see printf() which has domain-specific language
*/
void MyPrint2(const char *s) {
fputs(s, stdout);
}