<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Channel 9 Forums - Tech Off - C Standard Library string.h question involving strtok()</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/Forums/rss"></atom:link>
	<image>
		<url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url>
		<title>Channel 9 Forums - Tech Off - C Standard Library string.h question involving strtok()</title>
		<link>http://channel9.msdn.com/Forums</link>
	</image>
	<description>Channel 9 keeps you up to date with the latest news and behind the scenes info from Microsoft that developers love to keep up with. From LINQ to SilverLight – Watch videos and hear about all the cool technologies coming and the people behind them.</description>
	<link>http://channel9.msdn.com/Forums</link>
	<language>en</language>
	<pubDate>Wed, 19 Jun 2013 11:13:46 GMT</pubDate>
	<lastBuildDate>Wed, 19 Jun 2013 11:13:46 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<c9:totalResults>4</c9:totalResults>
	<c9:pageCount>-4</c9:pageCount>
	<c9:pageSize>-1</c9:pageSize>
	<item>
		<title>Tech Off - C Standard Library string.h question involving strtok()</title>
		<description><![CDATA[<p>I know that strtok() is not thread safe, so I am wondering, does it return a memory location to which it keeps a static pointer or does it keep no pointer to the memory location it returns?<br /><br />I guess what I am really asking is, will I be generating garbage if I do not explicitly free the pointer it returns?<br /><br />Typically, I would think that answer would be yes, but since strtok() is not threadsafe, that might not be the case.<br /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/261536-C-Standard-Library-stringh-question-involving-strtok/261536#261536</link>
		<pubDate>Sat, 08 Mar 2008 03:20:07 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/261536-C-Standard-Library-stringh-question-involving-strtok/261536#261536</guid>
		<dc:creator>Shining Arcanine</dc:creator>
		<slash:comments>4</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Shining Arcanine/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - C Standard Library string.h question involving strtok()</title>
		<description><![CDATA[<p>You shouldn't be freeing the pointer strtok returns at all.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/261536-C-Standard-Library-stringh-question-involving-strtok/81849983de62498fa7a79dfa00c1269f#81849983de62498fa7a79dfa00c1269f</link>
		<pubDate>Sat, 08 Mar 2008 03:54:18 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/261536-C-Standard-Library-stringh-question-involving-strtok/81849983de62498fa7a79dfa00c1269f#81849983de62498fa7a79dfa00c1269f</guid>
		<dc:creator>JChung2006</dc:creator>
		<slash:comments>4</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/JChung2006/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - C Standard Library string.h question involving strtok()</title>
		<description><![CDATA[<p>strtok uses a static pointer to keep track of where it is, that's why it's not thread safe. I took a look at the source code (strtok is only a handful of lines long, /glibc-2.7/string/strtok.c in the tarball) and it seems&nbsp;to only manipulate pointers pointing
 to your original string, so there's no need to free anything it returns. Just free the buffer the string was in at the end if it was dynamically allocated.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/261536-C-Standard-Library-stringh-question-involving-strtok/5f7c634e797d42a793f29dfa00c126e3#5f7c634e797d42a793f29dfa00c126e3</link>
		<pubDate>Sat, 08 Mar 2008 03:56:07 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/261536-C-Standard-Library-stringh-question-involving-strtok/5f7c634e797d42a793f29dfa00c126e3#5f7c634e797d42a793f29dfa00c126e3</guid>
		<dc:creator>TimP</dc:creator>
		<slash:comments>4</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/TimP/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - C Standard Library string.h question involving strtok()</title>
		<description><![CDATA[<p>strtok_s() stores the context pointer on your side.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/261536-C-Standard-Library-stringh-question-involving-strtok/bffc45b0f76a420f9e099dfa00c12759#bffc45b0f76a420f9e099dfa00c12759</link>
		<pubDate>Sat, 08 Mar 2008 13:56:20 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/261536-C-Standard-Library-stringh-question-involving-strtok/bffc45b0f76a420f9e099dfa00c12759#bffc45b0f76a420f9e099dfa00c12759</guid>
		<dc:creator>Axel Rietschin</dc:creator>
		<slash:comments>4</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/axelriet/Discussions/RSS</wfw:commentRss>
	</item>
</channel>
</rss>