Reading a numerical string from serial monitor to perform an action?

It seems like it is asking to stop reading at a certain character and record a certain length of these characters to a buffer.

The first argument is the character that will cause reading to stop. The 2nd argument is an array to put the characters in that are read. The 3rd argument is the size of the array, so that the function doesn't write beyond the end of the array.