OurOS 0.1
Operating System built by McGill Students
 
Loading...
Searching...
No Matches
print.h
1#ifndef _SYS_PRINT_H
2#define _SYS_PRINT_H
3
4#include <stdint.h>
5
6// Write to a fixed capacity string buffer
7// according to a format and arguments.
8//
9// The result may be truncated to fit in bufsz - 1 bytes.
10// A null character is written after the result in the buffer.
11//
12// Returns the number of characters written after truncation
13// (or, if buf=NULL && bufsz=0, number of characters to write)
14// excluding the null byte
15uint64_t snprintf(char *buf, uint64_t bufsz, const char *fmt, ...);
16
17#endif