C language: split lines by tabs (strtok() and fgets() usage)