Question: PLEASE EXPLAIN HOW EVERYTHING IN THE NUM _ SUBSTRING METHOD WORKS AND WHAT THEY MEAN!! #include #include #include #include #define MAX 1 0 2 4
PLEASE EXPLAIN HOW EVERYTHING IN THE NUMSUBSTRING METHOD WORKS AND WHAT THEY MEAN!!
#include
#include
#include
#include
#define MAX
#define NUMTHREADS
int nn;
char ss;
FILE fp;
int countArrayNUMTHREADS;
read input file and generate string ss and length nn
int readfFILE fp
iffpfopenstringstxtrNULL
printfERROR: can't open string.txt
;
return ;
schar mallocsizeofcharMAX;
ifsNULL
printfERROR: Out of memory!
;
return ;
schar mallocsizeofcharMAX;
ifsNULL
printfERROR: Out of memory
;
return ;
read s s from the file
sfgetss MAX, fp;
sfgetss MAX, fp;
nstrlens; length of s
nstrlens; length of s
ifsNULL sNULL n
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
