| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Function args |
While listening to andrew clarke Pete heard:Function args
G'day andrew
> I thought NULL was guaranteed to be a valid pointer, no need for
> the (void *) typecast? It's only 0 that needs a typecast.
ac> /*
ac> * stdio.h Standard I/O functions
ac> *
ac> * Copyright by WATCOM International Corp. 1988-1994. All rights
ac> reserved. */
ac> ...
ac> #ifndef NULL
ac> #if defined(__SMALL__) || defined(__MEDIUM__) || defined(__386__)
ac> #define NULL 0
ac> #else
ac> #define NULL 0L
ac> #endif
ac> #endif
taken from QC25 stdio.h
/***
*stdio.h - definitions/declarations for standard I/O routines
*
* Copyright (c) 1985-1990, Microsoft Corporation. All rights
* reserved.
*
*Purpose:
* This file defines the structures, values, macros, and
* functions used by the level 2 I/O ("standard I/O") routines.
* [ANSI/System V]
*
****/
/* define NULL pointer value */
#ifndef NULL
#if (_MSC_VER >= 600)
#define NULL ((void *)0)
#elif (defined(M_I86SM) || defined(M_I86MM))
#define NULL 0
#else
#define NULL 0L
#endif
#endif
-=Pete=-
--- OMX/Blue Wave v2.12
* Origin: Gates of Hell (3:713/914.16)SEEN-BY: 50/99 78/0 620/243 623/630 711/401 409 410 413 430 808 809 932 934 SEEN-BY: 712/508 515 713/111 317 601 611 615 618 700 826 888 914 714/906 SEEN-BY: 800/1 7877/2809 @PATH: 713/914 615 888 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.