subject

This function receives three parameters: line[], a C string ending in '\n'; word[], a C string, consisting of characters that are not whitespace (spaces, tabs, newlines, etc.), to be extracted from line[]; and size, the maximum number of characters that can be copied into word[]. The function should copy characters one-by-one from line[] into word[], stopping at whitespace, punctuation characters (e. g. ., ;, [) or after writing size characters (remember that valid C strings must end in '\0'). If the function is invoked again with the same line[] parameter, it should extract the next word from the line. In other words, the function should resume copying where the last copy stopped. If the function is invoked with a new line[] parameter, it should start copying from the beginning of the line. The function should return 1 if some characters were copied and 0 if no characters were copied and the end of line[] was reached. Hint: You may use the functions isspace() and ispunct() from ctype. h to determine if a character is whitespace.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 14:00
What is html ? give a small description about html
Answers: 2
question
Computers and Technology, 24.06.2019 10:00
Which two technologies support the building of single-page applications?
Answers: 2
question
Computers and Technology, 24.06.2019 12:40
Match the feature to the network architecture. expensive to set up useful for a small organization easy to track files has a central server inexpensive to set up difficult to track files useful for a large organization does not have a central server client- server network peer-to-peer network
Answers: 3
question
Computers and Technology, 24.06.2019 13:50
What does code do? a creates a text box that says "solid black" b creates a black border of any width c creates a black border 1 pixel wide
Answers: 1
You know the right answer?
This function receives three parameters: line[], a C string ending in '\n'; word[], a C string, cons...
Questions
question
Computers and Technology, 21.12.2020 17:50
question
English, 21.12.2020 17:50