Newer
Older
ubixos / src / lib / libc / stdio / fwrite.c
@reddawg reddawg on 28 May 2002 548 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$

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

#include <stdio.h>

int fwrite(const void *ptr,int size,FILE *fd) {
  int retVal = size;
  asm(
    "int %0"
    :
    : "i" (0x80),"a" (0),"b" (ptr),"c" (size),"d" (fd->fd)
    );
  return(retVal);
  }