* appendStringInfoChar * * Append a single byte to str. * Like appendStringInfo(str, "%c", ch) but much faster. */
| 201 | * Like appendStringInfo(str, "%c", ch) but much faster. |
| 202 | */ |
| 203 | void |
| 204 | appendStringInfoChar(StringInfo str, char ch) |
| 205 | { |
| 206 | /* Make more room if needed */ |
| 207 | if (str->len + 1 >= str->maxlen) |
| 208 | enlargeStringInfo(str, 1); |
| 209 | |
| 210 | /* OK, append the character */ |
| 211 | str->data[str->len] = ch; |
| 212 | str->len++; |
| 213 | str->data[str->len] = '\0'; |
| 214 | } |
| 215 | |
| 216 | /* |
| 217 | * appendStringInfoSpaces |