Update bbox_lib.cpp

This commit is contained in:
Eao3piq4e 2022-08-02 10:14:02 +08:00
parent 7dc9903be8
commit 09e299ac8a
1 changed files with 10 additions and 2 deletions

View File

@ -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.
noteThe 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;