Scanf

If you now it from C, nothing to tell you about. Same functionality but with memory safety.

Look the examples in the documentation.