Package: splint
Version: 3.1.2.dfsg1-1
Severity: normal

$ man strdup
...
SYNOPSIS
       #include <string.h>

       char *strdup(const char *s);
...
$ cat test.c
#include<string.h>
#include<stdlib.h>
int main(void) { /[EMAIL PROTECTED]@*/ char *s = strdup("foo"); free(s); return 
0; }
$ splint test.c
Splint 3.1.2 --- 23 Aug 2008

test.c: (in function main)
test.c:3:39: Unrecognized identifier: strdup
  Identifier used in code has not been declared. (Use -unrecog to inhibit
  warning)

Finished checking --- 1 code warning
$

Helmut

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.23.14 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=de_DE (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash

Versions of packages splint depends on:
ii  libc6                      2.7-13        GNU C Library: Shared libraries
ii  splint-data                3.1.2.dfsg1-1 tool for statically checking C pro

splint recommends no packages.

Versions of packages splint suggests:
pn  splint-doc-html               <none>     (no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to