MySQL
8.4.3
Source Code Documentation
strxnmov.h
Go to the documentation of this file.
1
/* Copyright (c) 2000, 2024, 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 designed to work 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 either included with
13
the library or referenced in the documentation.
14
15
Without limiting anything contained in the foregoing, this file,
16
which is part of C Driver for MySQL (Connector/C), is also subject to the
17
Universal FOSS Exception, version 1.0, a copy of which can be found at
18
http://oss.oracle.com/licenses/universal-foss-exception.
19
20
This library is distributed in the hope that it will be useful,
21
but WITHOUT ANY WARRANTY; without even the implied warranty of
22
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23
Library General Public License, version 2.0, for more details.
24
25
You should have received a copy of the GNU Library General Public
26
License along with this library; if not, write to the Free
27
Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
28
MA 02110-1301 USA */
29
30
/* File : strxnmov.c
31
Author : Richard A. O'Keefe.
32
Updated: 2 June 1984
33
Defines: strxnmov()
34
35
strxnmov(dst, len, src1, ..., srcn, nullptr)
36
moves the first len characters of the concatenation of src1,...,srcn
37
to dst and add a closing NUL character.
38
It is just like strnmov except that it concatenates multiple sources.
39
Beware: the last argument should be the null character pointer.
40
Take VERY great care not to omit it! Also be careful to use nullptr
41
and NOT to use 0, as on some machines 0 is not the same size as a
42
character pointer, or not the same bit pattern as nullptr.
43
44
NOTE
45
strxnmov is like strnmov in that it moves up to len
46
characters; dst will be padded on the right with one '\0' character.
47
if total-string-length >= length then dst[length] will be set to \0
48
*/
49
50
#ifndef INCLUDE_STRXNMOV_H_
51
#define INCLUDE_STRXNMOV_H_
52
53
#include <cstddef>
54
55
char
*
strxnmov
(
char
*dst,
size_t
len,
const
char
*src, ...);
56
57
#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