hjl / source-git / glibc

Forked from source-git/glibc 3 years ago
Clone

Blame support/support_quote_string.c

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