feat: reformatted code base to be more standard
This commit is contained in:
46
include/stdio.h
Normal file
46
include/stdio.h
Normal file
@@ -0,0 +1,46 @@
|
||||
//
|
||||
// Created by rick on 10-03-21.
|
||||
//
|
||||
|
||||
#ifndef NEW_KERNEL_STDIO_H
|
||||
#define NEW_KERNEL_STDIO_H
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stddef.h>
|
||||
|
||||
#define SEEK_SET 0
|
||||
|
||||
// todo
|
||||
typedef struct {
|
||||
int unused;
|
||||
} FILE;
|
||||
extern FILE *stderr;
|
||||
// todo
|
||||
#define stderr stderr
|
||||
|
||||
void fclose(FILE *);
|
||||
|
||||
void fflush(FILE *);
|
||||
|
||||
FILE *fopen(const char *, const char *);
|
||||
|
||||
void fprintf(FILE *, const char *, ...);
|
||||
|
||||
size_t fread(void *, size_t, size_t, FILE *);
|
||||
|
||||
int fseek(FILE *, long, int);
|
||||
|
||||
long ftell(FILE *);
|
||||
|
||||
size_t fwrite(const void *, size_t, size_t, FILE *);
|
||||
|
||||
void sebuf(FILE *, char *);
|
||||
|
||||
int vfprintf(FILE *, const char *, va_list);
|
||||
|
||||
int printf(const char *fmt, ...);
|
||||
|
||||
int sprintf(char *target, const char *fmt, ...);
|
||||
|
||||
|
||||
#endif //NEW_KERNEL_STDIO_H
|
||||
Reference in New Issue
Block a user