* initStringInfoOfSize * * Initialize a StringInfoData struct with data buffer of 'size' bytes */
| 71 | * Initialize a StringInfoData struct with data buffer of 'size' bytes |
| 72 | */ |
| 73 | void |
| 74 | initStringInfoOfSize(StringInfo str, int size) |
| 75 | { |
| 76 | |
| 77 | str->data = (char *) palloc(size); |
| 78 | str->maxlen = size; |
| 79 | str->len = 0; |
| 80 | str->data[0] = '\0'; |
| 81 | str->cursor = 0; |
| 82 | } |
| 83 | |
| 84 | /* |
| 85 | * resetStringInfo |
no test coverage detected