Blame support/support_quote_string.c

Packit Service f7aa7f
/* Quote a string so that it can be used in C literals.
Packit Service f7aa7f
   Copyright (C) 2018 Free Software Foundation, Inc.
Packit Service f7aa7f
   This file is part of the GNU C Library.
Packit Service f7aa7f
Packit Service f7aa7f
   The GNU C Library is free software; you can redistribute it and/or
Packit Service f7aa7f
   modify it under the terms of the GNU Lesser General Public
Packit Service f7aa7f
   License as published by the Free Software Foundation; either
Packit Service f7aa7f
   version 2.1 of the License, or (at your option) any later version.
Packit Service f7aa7f
Packit Service f7aa7f
   The GNU C Library is distributed in the hope that it will be useful,
Packit Service f7aa7f
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service f7aa7f
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service f7aa7f
   Lesser General Public License for more details.
Packit Service f7aa7f
Packit Service f7aa7f
   You should have received a copy of the GNU Lesser General Public
Packit Service f7aa7f
   License along with the GNU C Library; if not, see
Packit Service f7aa7f
   <http://www.gnu.org/licenses/>.  */
Packit Service f7aa7f
Packit Service f7aa7f
#include <string.h>
Packit Service f7aa7f
#include <support/support.h>
Packit Service f7aa7f
Packit Service f7aa7f
char *
Packit Service f7aa7f
support_quote_string (const char *str)
Packit Service f7aa7f
{
Packit Service f7aa7f
  return support_quote_blob (str, strlen (str));
Packit Service f7aa7f
}