What is nameout() for?

Поиск
Список
Период
Сортировка
Искать

What is nameout() for?

От:
Bruce Momjian <maillist@candle.pha.pa.us>
Дата:
I am confused by nameout().  There are a number of places where table
names are output using nameout(), and many other cases where they are
just output without calling nameout.  Can someone explain why the dash
is important?  I can see the pstrdup as being important, but not in all
of the cases where nameout is called.

---------------------------------------------------------------------------

/**      nameout - converts internal reprsentation to "..."*/
char *
nameout(NameData *s)
{     if (s == NULL)       return "-";   else        return pstrdup(s->data);
}

--  Bruce Momjian                        |  http://www.op.net/~candle maillist@candle.pha.pa.us            |  (610) 853-3000 +  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

FAQ