Blame support/support_quote_string.c

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