Segments used for memory initialization do not have a name.
However, APIs that load data from segments require a segment name.
That "name" is actually the textual form of the 0-based segment index.
That makes the API misleading. Why not have the API receive the segment index instead ?