source: rtems/testsuites/sptests/spsize/getint.c @ 7d3f9c6

4.115
Last change on this file since 7d3f9c6 was 7d3f9c6, checked in by Ralf Corsepius <ralf.corsepius@…>, on 02/22/11 at 07:37:03

Add HAVE_CONFIG_H.

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