Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | barcaroller <barcaroller@gmail.com> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: memmem() |
| Date | 2011-05-08 10:46 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <iq6ac6$qu5$1@dont-email.me> (permalink) |
| References | <iq50jo$aue$1@dont-email.me> <31d5f6ce-fca0-46f7-b18d-7148076e0f4f@v8g2000yqb.googlegroups.com> |
On 2011-05-08 03:11:17 -0400, puppi said: > There is strstr(). It's defined by C89 and C99. The essential > difference between strstr() and memmem() is that strstr() assumes that > the "haystack" and the "needle" are null-byte ended, while in memmem() > the lengths are specified. Hence it's not quite an equivalence (but > unless you are reading raw binary data, it's close to that). Thank your for your response. I am in fact dealing with raw binary data. I am a bit suprised that strstr() is in C99, but no similar function for binary data. I could roll my own, but I like GNU's optimizations in memmem (making use of word boundaries etc).
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
memmem() barcaroller <barcaroller@music.net> - 2011-05-07 22:53 -0400
Re: memmem() "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-08 02:33 -0400
Re: memmem() puppi <fabricio.puppi@gmail.com> - 2011-05-08 00:11 -0700
Re: memmem() "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-08 04:36 -0400
Re: memmem() James Kuyper <jameskuyper@verizon.net> - 2011-05-08 09:33 -0400
Re: memmem() barcaroller <barcaroller@music.net> - 2011-05-08 10:48 -0400
Re: memmem() barcaroller <barcaroller@gmail.com> - 2011-05-08 10:46 -0400
Re: memmem() Angel <angel+news@spamcop.net> - 2011-05-08 15:56 +0000
Re: memmem() barcaroller <barcaroller@music.net> - 2011-05-08 12:03 -0400
Re: memmem() puppi <fabricio.puppi@gmail.com> - 2011-05-09 04:58 -0700
Re: memmem() Keith Thompson <kst-u@mib.org> - 2011-05-09 08:45 -0700
Re: memmem() puppi <fabricio.puppi@gmail.com> - 2011-05-09 04:47 -0700
Re: memmem() blp@cs.stanford.edu (Ben Pfaff) - 2011-05-09 09:45 -0700
Re: memmem() Nobody <nobody@nowhere.com> - 2011-05-10 07:19 +0100
Re: memmem() Dr Nick <3-nospam@temporary-address.org.uk> - 2011-05-10 07:35 +0100
Re: memmem() pete <pfiland@mindspring.com> - 2011-05-10 04:27 -0400
Re: memmem() Ben Pfaff <blp@cs.stanford.edu> - 2011-05-10 07:16 -0700
Re: memmem() Nobody <nobody@nowhere.com> - 2011-05-10 21:07 +0100
csiph-web