OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [tests/] [sptests/] [spsize/] [getint.c] - Blame information for rev 583

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*  getint
2
 *
3
 *  This routine reads and returns an integer.
4
 *  It assumes decimal.
5
 *
6
 *  Input parameters:   NONE
7
 *
8
 *  Output parameters:
9
 *    returns - number read
10
 *
11
 *  COPYRIGHT (c) 1989-1999.
12
 *  On-Line Applications Research Corporation (OAR).
13
 *
14
 *  The license and distribution terms for this file may be
15
 *  found in the file LICENSE in this distribution or at
16
 *  http://www.OARcorp.com/rtems/license.html.
17
 *
18
 *  $Id: getint.c,v 1.2 2001-09-27 12:02:38 chris Exp $
19
 */
20
 
21
#include <rtems.h>
22
#include <stdio.h>
23
#include <stdlib.h>
24
 
25
int getint( void )
26
{
27
  char buff[16];
28
 
29
  gets(buff);
30
  return atoi(buff);
31
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.