Discussion:
[Mingw-users] strtok_r() not implemented
Anton Shepelev
2017-04-08 23:57:15 UTC
Permalink
Hello, all

I am trying to compile babl, which relies on the
strtok_r function:

https://manned.org/strtok.3

but it seems absent in MinGW. Will it be correct to
add it?
--
Please, do not forward replies to my e-mail.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
MinGW-users mailing list
MinGW-***@lists.sourceforge.net

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-***@lists.sourceforge.net?subject=unsubscribe
Anton Shepelev
2017-04-09 10:31:32 UTC
Permalink
I am trying to compile babl, which relies on the
https://manned.org/strtok.3
but it seems absent in MinGW. Will it be correct
to add it?
Several implementations of strtok_r() are given here:

http://stackoverflow.com/questions/12975022/strtok-r-for-mingw
--
Please, do not forward replies to my e-mail.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
MinGW-users mailing list
MinGW-***@lists.sourceforge.net

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-***@lists.sourceforge.net?subject=unsubscribe
Anton Shepelev
2017-04-09 13:49:37 UTC
Permalink
I am trying to compile babl, which relies on the
https://manned.org/strtok.3
but it seems absent in MinGW.
The interface of strtok_r() is rather ugly. Its
first invocation shall differ from subsequent ones,
whereas the task performed is the same.

I have come up with a more consistent version:

/* returns the index of c in s, or -1 if not found */
/* s shall be a NULL-terminated string */
int chrind( const char * s, const char c )
{ int res = -1;
int ind = 0;
while( s[ind] != ' ' )
{ if( s[ind] == c )
{ res = ind; break; }
ind++;
}
return res;
}

/* Re-entrant version with consistent invocation */
/* str and delim shall be NULL-terminated string */
char* strtok_r2( char** str, const char *delim )
{ char tok_found = 0;
char is_del = 0;
char* res = NULL;

while( **str != ' ' )
{ is_del = chrind( delim, **str ) >= 0;
if( tok_found && is_del )
{ **str = ' '; /* NULL-terminate in place */
( *str )++; /* and wind on to the next symbol */
break;
}
if( !tok_found && !is_del )
{ tok_found = 1;
res = *str; /* save start of token */
}
( *str )++;
}

return res;
}
--
Please, do not forward replies to my e-mail.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
MinGW-users mailing list
MinGW-***@lists.sourceforge.net

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-***@lists.sourceforge.net?subject=unsubscribe
Anton Shepelev
2017-04-09 13:57:09 UTC
Permalink
The interface of strtok_r() is rather ugly. Its
first invocation shall differ from subsequent
ones, whereas the task performed is the same.
[...]
The code fragment is broken because grofg interpret-
ed '\' as an escape character. Here is the correct
code:

/* returns the index of c in s, or -1 if not found */
/* s shall be a NULL-terminated string */
static int chrind( const char * s, const char c )
{ int res = -1;
int ind = 0;
while( s[ind] != '\0' )
{ if( s[ind] == c )
{ res = ind; break; }
ind++;
}
return res;
}

/* Re-entrant version with consistent invocation */
/* str and delim shall be NULL-terminated string */
static char * strtok_r2( char** str, const char *delim )
{ char tok_found = 0;
char is_del = 0;
char* res = NULL;

while( **str != '\0' )
{ is_del = chrind( delim, **str ) >= 0;
if( tok_found && is_del )
{ **str = '\0'; /* NULL-terminate in place */
( *str )++; /* and wind on to the next symbol */
break;
}
if( !tok_found && !is_del )
{ tok_found = 1;
res = *str; /* save start of token */
}
( *str )++;
}

return res;
}
--
Please, do not forward replies to my e-mail.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
MinGW-users mailing list
MinGW-***@lists.sourceforge.net

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-***@lists.sourceforge.net?subject=unsubscribe
Keith Marshall
2017-04-09 23:29:31 UTC
Permalink
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
The interface of strtok_r() is rather ugly. Its first invocation
shall differ from subsequent ones, whereas the task performed is
the same.
I agree that the APIs of both strtok() and strtok_r() are utterly
disgusting, but nevertheless they are what they are, and as POSIX.1
prescribes, (and as ISO-C prescribes, in the case of strtok()); the
same is true of Microsoft's strtok_s().
[...]
You are, of course, free to adopt this in your own applications,
but, since it complies with no recognized standard, it will not be
considered for inclusion in MinGW.
The code fragment is broken because grofg ...
What is grofg? Do you, perhaps, mean groff? If so, then...
interpreted '\' as an escape character.
strictly, as \0 appears in your code, it will be interpreted as an
_escape sequence_, representing a non-paddable digit-width space;
(typographically correct digits are all required to occupy uniform
space, even in proportionally spaced fonts). Thus...
[...]
while( s[ind] != '\0' )
the '\0' in this code results in:

while( s[ind] != ' ' )

(as it was shown, in your earlier post).

- --
Regards,
Keith.

Public key available from keys.gnupg.net
Key fingerprint: C19E C018 1547 DE50 E1D4 8F53 C0AD 36C6 347E 5A3F
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)

iQIcBAEBAgAGBQJY6sPbAAoJEMCtNsY0flo/j5kQAIX1/XXqTq71moMwrV7nkP3Y
JKIoP02euKKvFgfYvNDPZd2FU4LfCnem8ExGRVGXXBbrEmly5+wVBKZpPzITu0uJ
7GUXJnyIHK2iPRtRhCXykQ2akuzyKFQg64ExC9wR8F1i5uRk9UjMePjxkirGa9i5
gJS/fGlzXctxOnFSYjQhvB9iK8Af7m2qprWCP4taJkb9uLhafytbYk/95wL9CEx3
BlBcn/4pGNw0FFX2KqQPlmB2y5Pu3beUBcuIrLwPyXJLsCmKuEGupLRAmqsUcyDO
Nd4oo1DPcxPcJ7W/GfZqvtX1E0/ei0Hq8/hXEfvN3ay3pF4IRy9sfciMJ9ae3hfz
tVuTLDj5BCm1FndjhRMUrEAPFkjW1BEUL9EYoIyJ5fR0R/rNzwCmxc5dTghx3K6Y
lUmLQZq8GCT4FE+r/TmLk+y37Gla0aW0zoogwcJ3UP7Qpc3Dvb4cINxj8Zu0szxM
sPmQUIQhUAnYPuY+RQ95B2aOTr5e009HPAqBa/PJBwK+BZIG4sLaA8XGWcPpkq+o
QNsKaME7S+G+2CtMZlBZfpybNQ53xFSqMMDy7ahSwVwjZ2x8aLX/+6ZwZeo3Rms6
g7NWSSlVOYZ38S5nhoODj+UVuLEGLI8jtHt0tW16kjK0VdwdFoRzD7XWhuaAbMDJ
a0n6RDrVx0Cs9Jdz0XJ3
=k9fd
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
MinGW-users mailing list
MinGW-***@lists.sourceforge.net

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-***@lists.sourceforge.net?subject=unsubscribe
Anton Shepelev
2017-04-10 07:44:52 UTC
Permalink
strtok_r() is a POSIX.1 function, not ISO-C; thus
providing it goes beyond the MinGW remit of provid-
ing "extensions to support ISO-C99".
Understood.
[...]
You are, of course, free to adopt this in your own
applications, but, since it complies with no recog-
nized standard
That is what have done.
The code fragment is broken because grofg ...
What is grofg? Do you, perhaps, mean groff?
groff, yes.
--
Please, do not forward replies to the list to my e-mail.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
MinGW-users mailing list
MinGW-***@lists.sourceforge.net

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-***@lists.sourceforge.net?subject=unsubscribe
Keith Marshall
2017-04-09 21:49:56 UTC
Permalink
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Post by Anton Shepelev
https://manned.org/strtok.3
but it seems absent in MinGW. Will it be correct to add it?
strtok_r() is a POSIX.1 function, not ISO-C; thus providing it goes
beyond the MinGW remit of providing "extensions to support ISO-C99".
That said, if you are prepared to restrict your application to Vista
or later, (or link with non-free MSVCR80.DLL or later), Microsoft do
provide the syntactically equivalent, (in all but name), and mostly
functionally equivalent strtok_s(), so you could simply:

#define strtok_r strtok_s

That should work with MinGW; the entry point is already defined in
libmsvcrt.a, but a potential problem could be that <string.h> does
not (yet) declare a corresponding prototype -- a formal bug report,
to remind me to add it[1], would be helpful.

Of course, if you adopt this approach while linking with MSVCRT.DLL,
then your application will not run on any WinXP or earlier host; (it
will abort with a "DLL entry point not found" exception. It would
be possible to mitigate this, if there is sufficient user demand,
by providing a (likely simple) MinGW implementation of strtok_r();
this would necessitate a formal feature request ticket[2].

[1]: We already have https://sourceforge.net/p/mingw/bugs/1922/,
but it's much too vague; we need a ticket which explicitly names
each "_s" suffixed function for which a prototype is required.

[2]: https://sourceforge.net/p/mingw/bugs/new/

- --
Regards,
Keith.

Public key available from keys.gnupg.net
Key fingerprint: C19E C018 1547 DE50 E1D4 8F53 C0AD 36C6 347E 5A3F
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)

iQIcBAEBAgAGBQJY6qyDAAoJEMCtNsY0flo/KDMP/iYqCUyqU1gnYHGZWn597XG4
2B3HjnBFqY+JjDd+TnHa9QLEAljzZVr3YR1jdsHv1w8edlW3wiUwBhTf1AWT2Dle
UXa6xcaPB1PYHkzUwGRgU+vnWpchr75i8SRf7holh1h1yAsl8j86tbQkoBcdXlQS
+XjNutM3hpdxCQNnwCF7lGwGtykLbqafLMXfH+8jGFfm4n4KSvVUy3ejce+6AEuG
AKKGKv9Py5Rjz9p0f/zWjyxD7SVQU0zL1L44sWVC+r9d+VTvLmqODX57D+7EZ9jD
JHEB7XervrmnmItg3008TRFgAxyhwV5MhsnJd3EWsVnpa5o0m1o3xZxskSUSTXNT
Uqp0KJXGZ7LvP/CEdWxOn4E4VxjbUudX4MrUzrWXCR4xTNpaKwerOI+U/O27O4Qh
P5K9xeSc5wBKnJ3bpVadEpWucSMVmKQITsvYU7/ViEv7/rLTS0tziQ6rx08FF7pP
Ov1fALH+p6t6vFA5ac9ipXOsVe5jNow5v8tiQOuNr/hzr/k3EmVtAeLPHr3O3wEj
O3+IqrSUBwBcQIFB1cYnR3CrsastPgicxdt+fJ3RnafFuz0QiE0KnklhBue6X+Xn
pXQQZSCOdGVu187Qg341w1VsYpt2FNBrkR3Ajdg2yojkGT7nHwc2jh7aN25hpeY2
I2VKCpodDJlefnrF4a0H
=n68w
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
MinGW-users mailing list
MinGW-***@lists.sourceforge.net

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-***@lists.sourceforge.net?subject=unsubscribe
Anton Shepelev
2017-04-10 07:47:48 UTC
Permalink
Post by Keith Marshall
Of course, if you adopt this approach while linking
with MSVCRT.DLL, then your application will not run
on any WinXP or earlier host; (it will abort with a
"DLL entry point not found" exception. It would be
possible to mitigate this, if there is sufficient
user demand, by providing a (likely simple) MinGW
implementation of strtok_r(); this would necessi-
tate a formal feature request ticket[2].
I am on Windows XP, so I will create a ticket.
Shall you need an implementation, or can you reuse
an existing one, or write your own?
--
Please, do not forward replies to the list to my e-mail.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
MinGW-users mailing list
MinGW-***@lists.sourceforge.net

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-***@lists.sourceforge.net?subject=unsubscribe
Keith Marshall
2017-04-10 13:10:41 UTC
Permalink
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Post by Keith Marshall
Of course, if you adopt this approach while linking with
MSVCRT.DLL, then your application will not run on any WinXP or
earlier host; (it will abort with a "DLL entry point not found"
exception). It would be possible to mitigate this, if there is
sufficient user demand, by providing a (likely simple) MinGW
implementation of strtok_r(); this would necessitate a formal
feature request ticket[2].
I am on Windows XP, so I will create a ticket.
Thanks.
Shall you need an implementation, or can you reuse an existing
one, or write your own?
I already have one to hand, which should be suitable, thanks.

- --
Regards,
Keith.

Public key available from keys.gnupg.net
Key fingerprint: C19E C018 1547 DE50 E1D4 8F53 C0AD 36C6 347E 5A3F
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)

iQIcBAEBAgAGBQJY64RQAAoJEMCtNsY0flo/omYQALMp9PAk1OFW6zXz/HVY5aKW
B1ZEgos9PiVfkD2Pp3i3Gc/5ogtJ301X3KbMBi/5Y+HIuWYVxhLPOYJMGlpv8T3r
BcxGK4boihCuVhA9NHRz+qF6z8dwUVNY+iGK36huZGL/nLXTBwQbOlnKw/VUF5G3
39dtPEpUkzdwXr+MhpAOqGpXh1yZf55Rsbvh43yNyDfYM9/BzOK6Sc6PIhZ51qwp
tTd+RrYvAv2EQ1HFxbIzu+LfklAx+29nosCvYqJe2ll4DPE0/muhwrjbP0V97gZv
Ys5QexgOsBnAkhmukMpXanc8LoNOCS5D3BkHyA7YEW8GjrYkrwR/oDJfbfZT9+ru
f2PPpjTl3WO9Wzt6B8vyPC64IGNWUhQo64m/m3kaSA2AZgZmoalzV7ruqNaz1g+/
FR3qvaGCtWlYQi+nZfvO0pakZL4nsGhasSkFgWbpLZ7E010gOwkgUCdw1J1vqGly
BSnFyD+Uz774r4jAKLn0MtLD50qwNV9/cYhGUrt6j7Y4YY+vmqXrzPStGtfGruPj
n1YSwMd6KtnbDV2+GXW0iqv0nOicWxGyuoSjpGkxrQkE7G09G31QvwZCUeabdANr
crIJoHEtbjhwHu4bKg6vz4LPqHH0uiScRDQVwbvO6/byZ6Hpzg3uE83boR4ckSjb
Eh9WTruPiU8qYINml9Hb
=odfc
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
MinGW-users mailing list
MinGW-***@lists.sourceforge.net

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-***@lists.sourceforge.net?subject=unsubscribe
Anton Shepelev
2017-04-10 14:30:19 UTC
Permalink
Post by Keith Marshall
Of course, if you adopt this approach while link-
ing with MSVCRT.DLL, then your application will
not run on any WinXP or earlier host; (it will
abort with a "DLL entry point not found" excep-
tion. It would be possible to mitigate this, if
there is sufficient user demand, by providing a
(likely simple) MinGW implementation of str-
tok_r(); this would necessitate a formal feature
request ticket[2].
I am on Windows XP, so I will create a ticket.
Shall you need an implementation, or can you reuse
an existing one, or write your own?
Thanks.
Pray take no umbrage if I do it belatedly.
--
Please, do not forward replies to the list to my e-mail.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
MinGW-users mailing list
MinGW-***@lists.sourceforge.net

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-***@lists.sourceforge.net?subject=unsubscribe
Anton Shepelev
2017-04-13 20:50:58 UTC
Permalink
Post by Keith Marshall
I am trying to compile babl, which relies on the
https://manned.org/strtok.3
but it seems absent in MinGW. Will it be correct
to add it?
It would be possible to mitigate this, if there is
sufficient user demand, by providing a (likely
simple) MinGW implementation of strtok_r(); this
would necessitate a formal feature request ticket
Ticked created:

https://sourceforge.net/p/mingw/bugs/2342
--
Please, do not forward replies to my e-mail.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
MinGW-users mailing list
MinGW-***@lists.sourceforge.net

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-***@lists.sourceforge.net?subject=unsubscribe
Keith Marshall
2017-04-14 20:30:52 UTC
Permalink
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Post by Anton Shepelev
Post by Keith Marshall
I am trying to compile babl, which relies on the
https://manned.org/strtok.3
but it seems absent in MinGW. Will it be correct
to add it?
It would be possible to mitigate this, if there is
sufficient user demand, by providing a (likely
simple) MinGW implementation of strtok_r(); this
would necessitate a formal feature request ticket
https://sourceforge.net/p/mingw/bugs/2342
Thanks. I've added a proposed implementation.

I've enabled voting on the ticket. I am in favour of incorporating this
into libmingwex.a, and have voted accordingly. If any other users would
care to do likewise, please do so; if you choose to vote against, please
add a comment to explain why.

- --
Regards,
Keith.

Public key available from keys.gnupg.net
Key fingerprint: C19E C018 1547 DE50 E1D4 8F53 C0AD 36C6 347E 5A3F
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)

iQIcBAEBAgAGBQJY8TF8AAoJEMCtNsY0flo/A7IQALSp17TXW2rhSgLiJO8d5RQ8
ri7BkxcFELhrEE4zUHCElAaWxXQLqPpB3NhKwZTilkAzx978rjVzJXK7USqLrkGH
UD5BQVNhAXw0c2HgrWlWMm7Qaw3bGjSjqaINj2geqL0BsUsEFoVaYAmCxEYy+c5R
Rq+F05VCdwcLydQv/f9GQZwO+NRtNfl1AvLtRQUVZngoBPeulEd4ydYBM08Lu8dh
XPna5536IC3ZXXirUsffEVEuK5qY6T8e++smNQbMP8D3vFb5uVlhvrsFJgE6mjAn
tJxaJkw04XJTgdSnc+8wbwMQ6EoHWRJXaYn84XhWaiPiL+4MNf5RrZSC7tNNUkd7
CMdgRA7kUjspEs7W3o1Cbn6g7JmgH6lyAXdKMEAWGWsQLZQnETWG52ynATGpwj1/
8nPSFdDZs/RTWooa2FFdGxUCg0AJI2yFgVQ/sItpXOg51s5rwxBW+mQIMc6Eq8pP
b+KYZiMc/Cuv/1WkwOglsTE82m1PtzpXLLZUcCFRXND3eZ5nckOuI8UlB5RH0Q2b
/v3AvWNkPRtsROvu7hW0MEokCCd6/zps46ZTBboHdrcUKWA/r3+9dbom95QS9uC7
qkaWQMY7qzATuZaJJDqkXkl5Tcd9+8qwM9YOOQydT1lloyMFFiQmzAinBrG7luxu
APhMP1waB+XT5toFlyPp
=4YWU
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
MinGW-users mailing list
MinGW-***@lists.sourceforge.net

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-***@lists.sourceforge.net?subject=unsubscribe
Anton Shepelev
2017-04-15 10:11:56 UTC
Permalink
Post by Keith Marshall
Post by Anton Shepelev
I am trying to compile babl, which relies on
https://manned.org/strtok.3
but it seems absent in MinGW. Will it be
correct to add it?
It would be possible to mitigate this, if
there is sufficient user demand, by providing
a (likely simple) MinGW implementation of str-
tok_r(); this would necessitate a formal fea-
ture request ticket
https://sourceforge.net/p/mingw/bugs/2342
Thanks. I've added a proposed implementation.
I've enabled voting on the ticket. I am in favour
of incorporating this into libmingwex.a, and have
voted accordingly. If any other users would care
to do likewise, please do so; if you choose to
vote against, please add a comment to explain why.
Thank you very much.

So is it the static library for extra (supplemen-
tary) functions?
--
Please, do not forward replies to my e-mail.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
MinGW-users mailing list
MinGW-***@lists.sourceforge.net

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-***@lists.sourceforge.net?subject=unsubscribe
Continue reading on narkive:
Loading...