Function

GLib-2.0GLibstrchug

  • Removes leading whitespace from a string, by moving the rest of the characters forward.

    This function doesn't allocate or reallocate any memory; it modifies string in place. Therefore, it cannot be used on statically allocated strings.

    The pointer to string is returned to allow the nesting of functions.

    Also see GLib.strchomp and GLib.strstrip.

    Parameters

    • string: string

      a string to remove the leading whitespace from

    Returns string

    the modified string