1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-15 01:57:40 -05:00

Utility function: 'chomp'.

Basically like Perl's, only we forgive \r\n line endings.
This commit is contained in:
Simon Tatham
2015-05-12 10:47:33 +01:00
parent 6912888c8a
commit 6179c5cc7c
2 changed files with 19 additions and 0 deletions

1
misc.h
View File

@ -42,6 +42,7 @@ void burnstr(char *string);
int toint(unsigned);
char *fgetline(FILE *fp);
char *chomp(char *str);
void base64_encode_atom(unsigned char *data, int n, char *out);
int base64_decode_atom(char *atom, unsigned char *out);