add relative line number, implement in c