cavte, nevedeli by ste toto rozchodiť (skompilovať) v
DEV C++ prostredí? je to asi písané pre visual ale ja to potrebujem použiť ako súčasť iného programu čo robíme v devku. dá sa to upraviť tak aby to behalo v devku a robilo to presne to isté?
Kód:
#include <stdio.h>
#include <conio.h>
#include <ctype.h>
#include <string.h>
FILE *outstream;
char outf[30];
int items;
errno_t err;
int main(int argc, char* argv[]){
printf("\nOutput binary file name: "); scanf("%20s", &outf);
if( (err = fopen_s( &outstream, outf, "w+b" )) != 0 )
printf( "Output file %s was not opened\n", outf );
}