Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <unistd.h>
- void my_putchar(char ch) {
- if(ch)
- write(stdout, &ch, sizeof(ch));
- }
- void putstr(const char *str) {
- if(str)
- while(*str != '\0') {
- my_putchar(*str);
- ++str;
- }
- else {
- putstr("(null)");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement