mirror of
https://github.com/attractivechaos/klib
synced 2024-11-27 00:29:37 +03:00
Align backspace character [cosmetic]
This commit is contained in:
parent
f0d6c0fffc
commit
e90f6e8f33
2
kseq.h
2
kseq.h
@ -107,7 +107,7 @@ typedef struct __kstring_t {
|
||||
if (ks->end == -1) { ks->is_eof = 1; return -3; } \
|
||||
} else break; \
|
||||
} \
|
||||
if (delimiter == KS_SEP_LINE) { \
|
||||
if (delimiter == KS_SEP_LINE) { \
|
||||
unsigned char *sep = memchr(ks->buf + ks->begin, '\n', ks->end - ks->begin); \
|
||||
i = sep != NULL ? sep - ks->buf : ks->end; \
|
||||
} else if (delimiter > KS_SEP_MAX) { \
|
||||
|
Loading…
Reference in New Issue
Block a user