Re: strtok_r

From: Axel Naumann <Axel.Naumann_at_cern.ch>
Date: Mon, 20 Jun 2011 16:25:31 +0200


Hi,

compiled works:

// t.C:
char *strtok_r(char *s1, const char *s2, char **s3); void t() {

   char source[] = "source.source;source";    char delim[] = ".;";
   char* cursor = 0;
   printf("tok: %s\n", strtok_r(source, delim, &cursor)); }

$ root -l -b t.C++
root [0]
Processing t.C++...
tok: source

CINT does not support the "_r" family of functions.

Cheers, Axel.

Feverati wrote on 06/20/2011 04:13 PM:
> Dear root experts
>
> is it possible to use strtok_r within root?
>
> strtok_r: string.h Base Definitions volume of IEEE Std 1003.1-2001,
> /<string.h>/
> <http://pubs.opengroup.org/onlinepubs/009695399/basedefs/string.h.html>
>
> Thank you
>
> Giovanni Feverati
>
>
>
>
Received on Mon Jun 20 2011 - 16:25:36 CEST

This archive was generated by hypermail 2.2.0 : Mon Jun 20 2011 - 23:50:02 CEST