URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [tests/] [sptests/] [spsize/] [getint.c] - Rev 30
Go to most recent revision | Compare with Previous | Blame | View Log
/* getint * * This routine reads and returns an integer. * It assumes decimal. * * Input parameters: NONE * * Output parameters: * returns - number read * * COPYRIGHT (c) 1989-1999. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be * found in the file LICENSE in this distribution or at * http://www.OARcorp.com/rtems/license.html. * * $Id: getint.c,v 1.2 2001-09-27 12:02:38 chris Exp $ */ #include <rtems.h> #include <stdio.h> #include <stdlib.h> int getint( void ) { char buff[16]; gets(buff); return atoi(buff); }
Go to most recent revision | Compare with Previous | Blame | View Log