char wchar_t int8_t or whatever which you used for storing data
This means you want to calculate how many character you enter Used char sizeof Return sizeof the var for example int return 4
for example you used a char buffer for storing a stream of 128 bytes len structures and end marker is \n so you need (len in sizeof char units - sizeof \n) / (sizeof one structure * sizeof unit)
Обсуждают сегодня