* initStringInfo * * Initialize a StringInfoData struct (with previously undefined contents) * to describe an empty string. */
| 56 | * to describe an empty string. |
| 57 | */ |
| 58 | void |
| 59 | initStringInfo(StringInfo str) |
| 60 | { |
| 61 | int size = 1024; /* initial default buffer size */ |
| 62 | |
| 63 | str->data = (char *) palloc(size); |
| 64 | str->maxlen = size; |
| 65 | resetStringInfo(str); |
| 66 | } |
| 67 | |
| 68 | /* |
| 69 | * initStringInfoOfSize |