lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> to take into account other possibilities... so to handle unix and DOS line
> endings properly:
> 
> int len = strcspn(source, "\n\r");  /* stop at first newline */

Done (for 5.1).

-- Roberto