Date: Thu, 26 Dec 1996 18:27:08 -0500 (EST) From: Michael Phelps To: djgpp AT delorie DOT com Subject: sscanf() and NULL pointers Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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