getln(3) getln(3) NNAAMMEE getln - read one line of data SSYYNNTTAAXX ##iinncclluuddee <> int ggeettllnn(&_s_s,&_s_a,&_m_a_t_c_h,_s_e_p); substdio _s_s; stralloc _s_a; int _m_a_t_c_h; int _s_e_p; DDEESSCCRRIIPPTTIIOONN ggeettllnn reads a line of characters, terminated by a _s_e_p character, from _s_s. It returns the line in _s_a and sets _m_a_t_c_h to 1. If ggeettllnn sees end-of-input before it sees _s_e_p, it returns the partial line in _s_a and sets _m_a_t_c_h to 0. ggeettllnn normally returns 0. If it runs out of memory, or encounters an error from _s_s, it returns -1, setting eerrrrnnoo appropriately. SSEEEE AALLSSOO stralloc(3), substdio(3), getln2(3) getln(3)