X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Recipient: djgpp AT delorie DOT com Date: Mon, 17 Oct 2011 20:41:43 +0200 From: Eli Zaretskii Subject: Re: I need strtok_r() function In-reply-to: X-012-Sender: halo1 AT inter DOT net DOT il To: djgpp AT delorie DOT com Message-id: <8339erwjdk.fsf@gnu.org> References: Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: RayeR > Date: Mon, 17 Oct 2011 10:50:22 -0700 (PDT) > > I'm playing with compiling the x264 encoder and fixes on sources are > almost done but now I need > char *strtok_r(char *s1, const char *s2, char **s3); > function to final compile. It seems that djgpp string.h and libc is > outdated and missing it. Could someone provide a piece of code for > this function thar will compile in DJGPP? Or even better if there is > still somebody maintaining the libc could make an update? Just use strtok. There are no reentrancy issues with DJGPP, since it's all single-threaded.