Ticket #3811 (new task)

Opened 7 years ago

Have str_chomp()

Reported by: mooffie Owned by:
Priority: major Milestone: Future Releases
Component: mc-core Version: master
Keywords: Cc:
Blocked By: Blocking:
Branch state: no branch Votes for changeset:


We should introduce str_chomp(), and str_chomp_any(), and use it in (at least):

  • src/filemanager/panelize.c:do_external_panelize()
  • lib/vfs/parse_ls_vga.c:vfs_parse_ls_lga()
  • tests/src/vfs/extfs/helpers-list/mc_parse_ls_l.c:process_input()

(str_chomp() is for trimming "\n" only; str_chomp_any() trims other variations as well, as in vfs_parse_ls_lga().)

Note: See TracTickets for help on using tickets.