Experts Exchange connects you with the people and services you need so you can get back to work.
main(int argc, char *argv)
i = atol (argv);
if (argc < 3)
printf("USAGE: ALLOCATE filename size");
if ((fp = fopen (argv, "wb")) == NULL)
perror ("Error opening output file!");
if (fseek (fp, i, SEEK_SET))
perror ("Error positioning output file!");
if (fputc (NULL, fp) == EOF)
perror ("Error writing to output file!");
if (fclose (fp) == EOF)
perror ("Error closing output file!");
Open in new window
Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.