From 7861a52adf92a083bb2aed4c35f98d8035dce032 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Mon, 7 Jul 2025 13:22:53 +0200 Subject: Setup project skeleton --- src/libc/include/stdio.h | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'src/libc/include/stdio.h') diff --git a/src/libc/include/stdio.h b/src/libc/include/stdio.h index 1d0e27c..b9c1a38 100644 --- a/src/libc/include/stdio.h +++ b/src/libc/include/stdio.h @@ -1,5 +1,5 @@ /* - * wanix, a Unix-like operating system for WebAssembly + * wnix, a Unix-like operating system for WebAssembly applications. * Copyright (C) 2025 Xavier Del Campo Romero * * This program is free software: you can redistribute it and/or modify @@ -19,17 +19,11 @@ #ifndef _STDIO_H #define _STDIO_H -enum -{ - EOF = -1 -}; +enum {EOF = -1}; -typedef struct __file FILE; +int puts(const char *__s); +int putchar(int __c); -FILE *fopen(const char *__path, const char *__mode); -int printf(const char *__fmt, ...); -int fprintf(FILE *__stream, const char *__fmt, ...); - -extern FILE *stdin, *stdout, *stderr; +#include #endif -- cgit v1.2.3