MySQL
8.2.0
Source Code Documentation
strxnmov.h
Go to the documentation of this file.
1
/* Copyright (c) 2000, 2023, Oracle and/or its affiliates.
2
3
This library is free software; you can redistribute it and/or
4
modify it under the terms of the GNU Library General Public
5
License, version 2.0, as published by the Free Software Foundation.
6
7
This library is also distributed with certain software (including
8
but not limited to OpenSSL) that is licensed under separate terms,
9
as designated in a particular file or component or in included license
10
documentation. The authors of MySQL hereby grant you an additional
11
permission to link the library and your derivative works with the
12
separately licensed software that they have included with MySQL.
13
14
Without limiting anything contained in the foregoing, this file,
15
which is part of C Driver for MySQL (Connector/C), is also subject to the
16
Universal FOSS Exception, version 1.0, a copy of which can be found at
17
http://oss.oracle.com/licenses/universal-foss-exception.
18
19
This library is distributed in the hope that it will be useful,
20
but WITHOUT ANY WARRANTY; without even the implied warranty of
21
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22
Library General Public License, version 2.0, for more details.
23
24
You should have received a copy of the GNU Library General Public
25
License along with this library; if not, write to the Free
26
Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
27
MA 02110-1301 USA */
28
29
/* File : strxnmov.c
30
Author : Richard A. O'Keefe.
31
Updated: 2 June 1984
32
Defines: strxnmov()
33
34
strxnmov(dst, len, src1, ..., srcn, nullptr)
35
moves the first len characters of the concatenation of src1,...,srcn
36
to dst and add a closing NUL character.
37
It is just like strnmov except that it concatenates multiple sources.
38
Beware: the last argument should be the null character pointer.
39
Take VERY great care not to omit it! Also be careful to use nullptr
40
and NOT to use 0, as on some machines 0 is not the same size as a
41
character pointer, or not the same bit pattern as nullptr.
42
43
NOTE
44
strxnmov is like strnmov in that it moves up to len
45
characters; dst will be padded on the right with one '\0' character.
46
if total-string-length >= length then dst[length] will be set to \0
47
*/
48
49
#ifndef INCLUDE_STRXNMOV_H_
50
#define INCLUDE_STRXNMOV_H_
51
52
#include <cstddef>
53
54
char
*
strxnmov
(
char
*dst,
size_t
len,
const
char
*src, ...);
55
56
#endif
// INCLUDE_STRXNMOV_H_
strxnmov
char * strxnmov(char *dst, size_t len, const char *src,...)
Definition:
strxnmov.cc:53
include
strxnmov.h
Generated by
1.9.2