C Code Define Crtsecurenowarnings Used Visual Studio Include Include Include Functions Pro Q37089968

I have this c++ code:

#define _CRT_SECURE_NO_WARNINGS // used in Visual studio
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

// functions prototypes
unsigned int long computeString_BitMask(char *word, intsize);
void compute_CheckSum(int size, char *input, unsigned int long*check);
void computeCheckSum_InputFile(char *filename, int size);

// main function
int main(int argc, char *argv[])
{
// define the string fileName to store the name of the file
// from the command line argument
char *fileName = malloc(sizeof(char) *30);

// declare the variable to store the checksum bit size
int checkSumBits;

// if arguments at command line are less than 2 thendisplay
// an error message
if(argc < 2)
{
printf(“Error! Insufficient arguments are provided at commandline.n”);
printf(“At the command line pass the input file name followed bythe checksum

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.