Newer
Older
ubixos / src / lib / libc / include / stdio.h
@reddawg reddawg on 28 May 2002 921 bytes Its Been lots of work
/**************************************************************************************
 Copyright (c) 2002 The UbixOS Project
 All rights reserved.

 Redistribution and use in source and binary forms, with or without modification,
 are prohibited.

 $Id$

**************************************************************************************/

#ifndef _STDIO_H
#define _STDIO_H

#include <stdarg.h>

/* Type Definitions */

typedef struct fileDescriptorTable {
  unsigned short fd;
  } FILE;

/* Definitions */

extern FILE fdTable[];

#define stdin   (&fdTable[0])
#define stdout  (&fdTable[1])
#define stderr  (&fdTable[2])

/* Functions Definitions */

int fprintf(FILE *, const char *,...);
int printf(const char *,...);
int vfprintf(FILE *,const char *,vaList args);
int vsprintf(char *buf,const char *fmt,vaList args);
FILE *fopen(const char *,const char *);
int fwrite(const void *ptr,int size,FILE *fd);

#endif