declaration of sprintf only if __STDC__ is not defined

This commit is contained in:
ceriel
1989-08-21 11:43:41 +00:00
parent fbe921023a
commit 8e5e22aba7
5 changed files with 26 additions and 5 deletions

View File

@@ -19,7 +19,11 @@ static char rcsid[] = "$Header$";
* Author: Hans van Staveren
*/
extern char *sprintf();
#ifndef __STDC__
extern char *sprintf();
#else
/* sprintf should be declared in stdio.h, as returning an int */
#endif
string mystrcpy();