From 09e299ac8a54afd31f853b93b46aaf09c9f6c27b Mon Sep 17 00:00:00 2001 From: Eao3piq4e Date: Tue, 2 Aug 2022 10:14:02 +0800 Subject: [PATCH] Update bbox_lib.cpp --- src/gausskernel/cbb/bbox/bbox_lib.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/gausskernel/cbb/bbox/bbox_lib.cpp b/src/gausskernel/cbb/bbox/bbox_lib.cpp index 32b48667d..115af9053 100644 --- a/src/gausskernel/cbb/bbox/bbox_lib.cpp +++ b/src/gausskernel/cbb/bbox/bbox_lib.cpp @@ -51,8 +51,16 @@ struct PIPE_IDS { static struct PIPE_IDS astPipeIds[BBOX_MAX_PIDS]; /* - * compare string pszSrc and pszTarget - */ +function name: bbox_strncmp +description: compare two strings, the pointer pszSrc and pszTarget store their addresses. +arguments: Two pointers of type const char*, pointing to two strings needed to be compared. +return value: s32, an interger. + If it's zero, then string pszSrc and pszTarget are same, + else it indicates the position of the first character that + these two strings can't match. +note:The two pointers shouldn't be null. +date: 2022/8/2 +*/ s32 bbox_strncmp(const char* pszSrc, const char* pszTarget, s32 count) { signed char cRes = 0;