unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
blob 696da402a73d98da2735d67f1ca5d88c61f71583 434 bytes (raw)
name: util/string-util.h 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
 
#ifndef _STRING_UTIL_H
#define _STRING_UTIL_H

#include <string.h>

/* like strtok(3), but without state, and doesn't modify s. usage pattern:
 *
 * const char *tok = input;
 * const char *delim = " \t";
 * size_t tok_len = 0;
 *
 * while ((tok = strtok_len (tok + tok_len, delim, &tok_len)) != NULL) {
 *     // do stuff with string tok of length tok_len
 * }
 */

char *strtok_len (char *s, const char *delim, size_t *len);

#endif

debug log:

solving 696da40 ...
found 696da40 in https://yhetil.org/notmuch/1354843607-17980-4-git-send-email-david@tethera.net/ ||
	https://yhetil.org/notmuch/1353792017-31459-9-git-send-email-david@tethera.net/

applying [1/1] https://yhetil.org/notmuch/1354843607-17980-4-git-send-email-david@tethera.net/
diff --git a/util/string-util.h b/util/string-util.h
new file mode 100644
index 0000000..696da40

Checking patch util/string-util.h...
Applied patch util/string-util.h cleanly.

skipping https://yhetil.org/notmuch/1353792017-31459-9-git-send-email-david@tethera.net/ for 696da40
index at:
100644 696da402a73d98da2735d67f1ca5d88c61f71583	util/string-util.h

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).