1. 41
  1. 1

    I consider const as a formal indication that the function will not modify the buffer.

    No, it’s the other buffer, the one that has no const!

    int f(char const *);  // Just give an info about the buffer.
    int f(char const *, char *);  // Read from first buffer, write to second.
    int f(char *);  // Edit the buffer (strip \r, etc.).