LINES and MAXLENX are 100. from the malloc argument it seems that 10,000 blocks of pointers to chars are allocated for the purpose. my question is: why bufend, which is supposed to hold the last adress of allocated block, is buf + 200? I think it should be: buf + 10,000 .
bufend = buf + (LINE * MAXLEN)
Обсуждают сегодня