utils_string.h (911B)
1 /* 2 * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. 3 * 4 * Copyright 2007-2020 Broadcom Inc. All rights reserved. 5 */ 6 7 8 #ifndef __UTILS_STRING_H_INCLUDED__ 9 /* { */ 10 #define __UTILS_STRING_H_INCLUDED__ 11 12 #ifdef __cplusplus 13 extern "C" { 14 #endif 15 16 17 #ifdef __DUNE_HRP_LINUX__ 18 /* { */ 19 #include "DHRP/include/dhrp_defs.h" 20 /* } */ 21 #else 22 /* { */ 23 #include <appl/dpp/UserInterface/ui_pure_defi.h> 24 /* } */ 25 #endif 26 27 28 char* 29 sprint_ip( 30 char decimal_ip[MAX_IP_STRING], 31 const unsigned long ip_addr, 32 const unsigned int short_format 33 ); 34 35 int 36 str_to_lower( 37 char *in_str 38 ) ; 39 40 unsigned 41 int 42 str_max_match( 43 const char *in_str_01, 44 const char *in_str_02, 45 const unsigned int max_to_compare 46 ); 47 48 #ifdef __cplusplus 49 } 50 #endif 51 52 53 /* } __UTILS_STRING_H_INCLUDED__*/ 54 #endif 55