GLib.strup (original) (raw)

GLib

API Version: 2.0

Library Version: 2.85.0

Functions

Generated by gi-docgen 2024.1

Function

GLibstrup

deprecated: 2.2

Declaration [src]


gchar*
g_strup (
  gchar* string
)

Description [src]

Converts a string to upper case.

Deprecated since: 2.2

This function is totally broken for the reasons discussed in the g_strncasecmp() docs — use g_ascii_strup() org_utf8_strup() instead.

Parameters

string

Type: gchar*

The string to convert.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.

Return value

Type: gchar*

The string.

The caller of the function takes ownership of the data, and is responsible for freeing it.
The value is a NUL terminated UTF-8 string.