File: m2l_testptr.c

package info (click to toggle)
m2c 0.6-10.2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 2,156 kB
  • ctags: 1,908
  • sloc: ansic: 18,135; sh: 1,590; makefile: 48
file content (16 lines) | stat: -rw-r--r-- 325 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* Modula-2 run-time function for processing null pointer.
   Copyright (C) 1993-1997 (see more details in file COPYING).

   This file is part of Modula-2 translator.  */

#include <stdio.h>

char *
m2_testptr (ptr)
     char *ptr;
{
  if (ptr != 0)
    return ptr;
  fputs ("\n\rpointer overange", stderr);
  m2_halt ();
}