-#define LTRIM(pos) while (isspace(*pos)) { pos++; }
-#define STRTOLOWER(str, ptr) for (ptr = str ; *ptr ; ptr++) { *ptr = tolower(*ptr); }
+#define LTRIM(pos) while (isspace(*pos)) { ++pos; }
+#define STRTOLOWER(str, ptr) for (ptr = str ; *ptr ; ++ptr) { *ptr = tolower(*ptr); }
if ((int)strlen(headers[i]) == size && strcasestr(mbox->line, headers[i]) == mbox->line) {
current = (char*)malloc(size + 1);
strcpy(current, headers[i]);
if ((int)strlen(headers[i]) == size && strcasestr(mbox->line, headers[i]) == mbox->line) {
current = (char*)malloc(size + 1);
strcpy(current, headers[i]);
static bool goToMessage(MBox *mbox, int idx)
{
if (mbox->messageId > idx) {
static bool goToMessage(MBox *mbox, int idx)
{
if (mbox->messageId > idx) {
headerNb = argc - optind;
headers = (argv + optind);
for (i = 0 ; i < headerNb ; i++) {
headerNb = argc - optind;
headers = (argv + optind);
for (i = 0 ; i < headerNb ; i++) {
if (!goToOffset(mbox, pos, pmid)) {
fprintf(stderr, "Offset %d do not match with a message beginning\n", pos);
rewindMBox(mbox);
if (!goToOffset(mbox, pos, pmid)) {
fprintf(stderr, "Offset %d do not match with a message beginning\n", pos);
rewindMBox(mbox);