mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
Add further clarity to example package
This commit is contained in:
parent
d2b20422c8
commit
a2c2d14100
6 changed files with 40 additions and 14 deletions
|
@ -1,10 +1,19 @@
|
|||
#include "examples/package/lib/myprint.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
|
||||
/**
|
||||
* Calls MyPrint2() indirected via assembly function.
|
||||
*/
|
||||
void MyPrint(const char *s) {
|
||||
MyAsm(s);
|
||||
}
|
||||
|
||||
/**
|
||||
* 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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue