Function

Idecreate_project_id

Declaration

char*
ide_create_project_id (
  const char* name
)

Description

Escapes the project name into something suitable using as an id. This can be uesd to determine the directory name when the project name should be used.

Parameters

name

Type: const char*

The name of the project.

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

Return value

Type: char*

A new 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.