source: rtems/testsuites/sptests/spsize/getint.c @ 3e26377b

4.104.114.84.95
Last change on this file since 3e26377b was 08311cc3, checked in by Joel Sherrill <joel.sherrill@…>, on 11/17/99 at 17:51:34

Updated copyright notice.

  • Property mode set to 100644
File size: 575 bytes
Line 
1/*  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$
19 */
20
21#include <rtems.h>
22#include <stdio.h>
23#include <stdlib.h>
24
25int getint( void )
26{
27  char buff[16];
28
29  gets(buff);
30  return atoi(buff);
31}
Note: See TracBrowser for help on using the repository browser.