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