answersLogoWhite

0

How do you use the strtok function?

User Avatar

Anonymous

19y ago
Updated: 8/16/2019

strtok sequentially truncate string if delimiter is found. If string is not NULL, the function scans string for the first occurrence of any character included in delimiters. If it is found, the function overwrites the delimiter in string by a null-character and returns a pointer to the token, i.e. the part of the scanned string previous to the delimiter. After a first call to strtok, the function may be called with NULL as string parameter, and it will follow by where the last call to strtok found a delimiter. delimiters may vary from a call to another. Parameters. string Null-terminated string to scan. separator Null-terminated string containing the separators. Return Value. A pointer to the last token found in string. NULL is returned when there are no more tokens to be found. Portability. Defined in ANSI-C.

User Avatar

Wiki User

19y ago

What else can I help you with?

Related Questions

How do you isolate words in while reading a file in c?

You can use functions fgets and strtok.


Anyone knows a programming code to look for nth word in a string using string.h?

Function strtok can help you to separate the words.


What does 'strtok' mean in computing?

A strtok is used as a search string in computing where it can find a variable that is typed after " " (add a space), and then return it as a string. It is part of the C++ programming technique.


How do you read input of a programme from a text file using borland c compiler from command prompt?

Use functions like fopen, fclose, fgets, sscanf, strtok


How do you get the current time in Microsoft Excel?

You use the NOW function, like this:=NOW()You use the NOW function, like this:=NOW()You use the NOW function, like this:=NOW()You use the NOW function, like this:=NOW()You use the NOW function, like this:=NOW()You use the NOW function, like this:=NOW()You use the NOW function, like this:=NOW()You use the NOW function, like this:=NOW()You use the NOW function, like this:=NOW()You use the NOW function, like this:=NOW()You use the NOW function, like this:=NOW()


What function tests a specific condition in Excel?

The IF function is the main function to do it and you can also use other logical functions, like the AND function, the OR function or the NOT function.


Which feature do you use to enter a function?

You can use the Insert Function feature.


Can you use Sum Function in school?

If you use Excel in school, then, yes, you can use the SUM function.


What word can you use instead of function?

function


How do you use this function in c programme?

I don't use that function in C programme.


What is the formula used in Excel to calculate interest?

The most common function to do this is IPMT and you can also use ISPMT.The most common function to do this is IPMT and you can also use ISPMT.The most common function to do this is IPMT and you can also use ISPMT.The most common function to do this is IPMT and you can also use ISPMT.The most common function to do this is IPMT and you can also use ISPMT.The most common function to do this is IPMT and you can also use ISPMT.The most common function to do this is IPMT and you can also use ISPMT.The most common function to do this is IPMT and you can also use ISPMT.The most common function to do this is IPMT and you can also use ISPMT.The most common function to do this is IPMT and you can also use ISPMT.The most common function to do this is IPMT and you can also use ISPMT.


To add numeric enteries quick in excel use the function?

Use the Sum function.