A
Abubakar
Hi,
the project we are working on uses "int" for all integral type data (i have
also declared size_t at some places where crt functions return size_t type).
Now our application has to deal with files larger than 4gb. Typical places
where my code will have to deal with more than 4gb data/figure is
calculating the sizes of files and storing them in some place, this can be
like 6 or 7 or more gb of figure. Breaking down the 6 or 7 gb archive file
into small blocks of say 500kb. I was about to make some changes in my code
to change int to int64 *where needed*, when somebody came up to me and said
"why dont you just find-and-replace all the int with int64, that way you
wont have to think about where you have to make changes and wont have to do
any debugging."
Now i want to knowm can/should i do this find-n-replace all int with int64?
I mean what i have in mind is why should I change all of my code to use in64
datatype where as only a small portion of my code requires that change. Plz
advise.
Regards,
..ab
the project we are working on uses "int" for all integral type data (i have
also declared size_t at some places where crt functions return size_t type).
Now our application has to deal with files larger than 4gb. Typical places
where my code will have to deal with more than 4gb data/figure is
calculating the sizes of files and storing them in some place, this can be
like 6 or 7 or more gb of figure. Breaking down the 6 or 7 gb archive file
into small blocks of say 500kb. I was about to make some changes in my code
to change int to int64 *where needed*, when somebody came up to me and said
"why dont you just find-and-replace all the int with int64, that way you
wont have to think about where you have to make changes and wont have to do
any debugging."
Now i want to knowm can/should i do this find-n-replace all int with int64?
I mean what i have in mind is why should I change all of my code to use in64
datatype where as only a small portion of my code requires that change. Plz
advise.
Regards,
..ab