2 ==================================================================================
3 Copyright (c) 2019 Nokia
4 Copyright (c) 2018-2019 AT&T Intellectual Property.
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17 ==================================================================================
21 Mnemonic rmr_str2meid.xfm
22 Abstract The manual page for the rmr_str2meid function.
23 Author E. Scott Daniels
28 .im &{lib}/man/setup.im
32 &h1(RMR Library Functions)
41 int rmr_str2meid( rmr_mbuf_t* mbuf, unsigned char* src, int len )
47 The &cw(rmr_str2meid) function will copy the string pointed to by src to the
48 managed equipment ID (meid) field in the given message.
49 The field is a fixed length, gated by the constant &cw(RMR_MAX_MEID) and if string length is larger
50 than this value, then &bold(nothing) will be copied. (Note, this differs slightly from the
51 behaviour of the &cw( lrmr_bytes2meid() ) function.)
54 On success, the value RMR_OK is returned.
55 If the string cannot be copied to the message, the return value will be one of the
59 If the return value is not RMR_OK, then it will be set to one of the values below.
63 &beg_dlist(.75i : ^&bold_font )
64 &di(RMR_ERR_BADARG) The message, or an internal portion of the message, was corrupted or the pointer was invalid.
67 &di(RMR_ERR_OVERFLOW) The length passed in was larger than the maximum length of the field; only a portion of
68 the source bytes were copied.