| delorie.com/archives/browse.cgi | search |
| Date: | Thu, 26 Dec 1996 18:27:08 -0500 (EST) |
| From: | Michael Phelps <morphine AT hops DOT cs DOT jhu DOT edu> |
| To: | djgpp AT delorie DOT com |
| Subject: | sscanf() and NULL pointers |
| Message-ID: | <Pine.GSO.3.95.961226182357.3119A-100000@hops.cs.jhu.edu> |
| MIME-Version: | 1.0 |
Is there a defined behavior for sscanf() when passed a NULL
pointer? One of my programs worked fine under Win 95 but crashed with
CWSDPMI r3, presumably because CWSDPMI detects NULL pointer dereferences.
I had assumed that sscanf() would return a value of zero when passed a
NULL pointer.
---Michael Phelps
morphine AT cs DOT jhu DOT edu
CH3
|
N
/ |
______/ |
/ \ CH2
_____/ \__|__
// \\ / | \\
// \\______/___CH2 \\
\ / \ /
\______/ \_____/
/ ------ \ / \
OH \ / OH
O
Morphine
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |