2020-06-16 02:01:28 +00:00
|
|
|
#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.
|
|
|
|
*/
|
2020-06-16 02:01:28 +00:00
|
|
|
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
|
|
|
|
*/
|
2020-06-16 02:01:28 +00:00
|
|
|
void MyPrint2(const char *s) {
|
|
|
|
fputs(s, stdout);
|
|
|
|
}
|