This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/WATCOM/samples/clibexam/scanf_s.c

14 lines
262 B
C

#define __STDC_WANT_LIB_EXT1__ 1
#include <stdio.h>
void main( void )
{
int day, year;
char weekday[10], month[10];
scanf_s( "%s %s %d %d",
weekday, sizeof( weekday ),
month, sizeof( month ),
&day, &year );
}