is there a function like sizeof that can be used at run time not compile time?
I am trying to make a program that reads several (lets say eight) bytes from a file into an array but what if there is only a few bytes left (lets say three)?
Is an array the best option for doing this and if so how do I do a sizeof to determine how many bytes are left in the file.
I am using C not C++ but is there a way to do it in either language and which one should I be using? I don't like OOP.
I will be reading from the file into long long int or hex.