File: bug-18899.c

package info (click to toggle)
avr-libc 1%3A1.6.2.cvs20080610-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 14,848 kB
  • ctags: 55,619
  • sloc: ansic: 92,267; asm: 6,692; sh: 4,131; makefile: 2,481; python: 976; pascal: 426; perl: 116
file content (11 lines) | stat: -rw-r--r-- 283 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
/* bug #18899: atoi and atol do not handle vertical tab properly
   $Id: bug-18899.c,v 1.1 2007/02/05 21:35:59 dmix Exp $
 */
#include <stdlib.h>

int main ()
{
    if (atoi ("\v12345") != 12345) exit (__LINE__);
    if (atol ("\v123456") != 123456) exit (__LINE__);
    return 0;
}