National_Instruments
200-500 · Question #227
Which of the following functions can be used to match a string against a whitelist mask of allowed characters?
The correct answer is C. strspn(). See the full explanation below for the reasoning.
Question
Which of the following functions can be used to match a string against a whitelist mask of allowed characters?
Options
- Astr_match()
- Bsubstr_replace()
- Cstrspn()
- Dstrtr()
How the community answered
(54 responses)- A7% (4)
- B13% (7)
- C76% (41)
- D4% (2)
Community Discussion
No community discussion yet for this question.