src/backend/utils/mmgr/mcxt.c
char *
pchomp(const char *in)
{
	size_t		n;

	n = strlen(in);
	while (n > 0 && in[n - 1] == '\n')
		n--;
	return pnstrdup(in, n);
}
/*
 * Make copy of string with all trailing newline characters removed.
 */
Make copy of string with all trailing newline characters removed.
Make copy of string with all trailing newline characters removed .
char *
pchomp(const char *in)
{
	size_t		n;
	n = strlen(in);
	while (n > 0 && in[n - 1] == '\n')
		n--;
	return pnstrdup(in, n);
}
char * pchomp ( const char * in ) { size_t n ; n = strlen ( in ) ; while ( n > 0 && in [ n - 1 ] == ' \n ' ) n -- ; return pnstrdup ( in , n ) ; }
Make copy of string with all trailing newline characters removed.
Make copy of string with all trailing newline characters removed .