source: rtems/testsuites/sptests/spsize/getint.c @ df40cc9

4.115
Last change on this file since df40cc9 was c499856, checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 628 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-2009.
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.rtems.org/license/LICENSE.
17 */
18
19#ifdef HAVE_CONFIG_H
20#include "config.h"
21#endif
22
23#include <rtems.h>
24#include <stdio.h>
25#include <stdlib.h>
26
27int getint( void );
28
29int getint( void )
30{
31  char buff[16];
32
33  gets(buff);
34  return atoi(buff);
35}
Note: See TracBrowser for help on using the repository browser.