-
大小: 50KB文件類型: .gz金幣: 1下載: 0 次發布日期: 2021-05-16
- 語言: 其他
- 標簽: UltraVNC??centos??vnc??vncrepeater??
資源簡介
UltraVNC Repeater centos 版本源代碼,編譯并配置后,可以直接運行,詳情參考博文 https://blog.csdn.net/WTUDAN/article/details/100214799
代碼片段和文件信息
/*
?based?upon?libiniparser?by?Nicolas?Devillard
?Hacked?into?1?file?(m-iniparser)?by?Freek/2005
?Original?terms?following:
?--?-
?Copyright?(c)?2000?by?Nicolas?Devillard?(ndevilla?AT?free?DOT?fr).
?Written?by?Nicolas?Devillard.?Not?derived?from?licensed?software.
?Permission?is?granted?to?anyone?to?use?this?software?for?any
?purpose?on?any?computer?system?and?to?redistribute?it?freely
?subject?to?the?following?restrictions:
?1.?The?author?is?not?responsible?for?the?consequences?of?use?of
?this?software?no?matter?how?awful?even?if?they?arise
?from?defects?in?it.
?2.?The?origin?of?this?software?must?not?be?misrepresented?either
?by?explicit?claim?or?by?omission.
?3.?Altered?versions?must?be?plainly?marked?as?such?and?must?not
?be?misrepresented?as?being?the?original?software.
?4.?This?notice?may?not?be?removed?or?altered.
?*/
//Modified?by?Jari?Korhonen/2005:
//-strcpy()?->?strlcpy()
//-sprintf()?->?snprintf()
//-removed?strupc?/?strstrip?(were?not?used)
#include?
#include?
#include?
#include?
#include?“iniparser.h“
#include?“openbsd_stringfuncs.h“
#ifdef?__cplusplus
extern?“C“?{
#endif
/*?strlib.c?following?*/
#define?ASCIILINESZ?1024
/*-------------------------------------------------------------------------*/
/**
??@brief????Convert?a?string?to?lowercase.
??@param????s???String?to?convert.
??@return???ptr?to?statically?allocated?string.
??This?function?returns?a?pointer?to?a?statically?allocated?string
??containing?a?lowercased?version?of?the?input?string.?Do?not?free
??or?modify?the?returned?string!?Since?the?returned?string?is?statically
??allocated?it?will?be?modified?at?each?function?call?(not?re-entrant).
?*/
/*--------------------------------------------------------------------------*/
static?char?*?strlwc(char?*?s)
{
????static?char?l[ASCIILINESZ+1];
????int?i?;
????if?(s==NULL)?return?NULL?;
????memset(l?0?ASCIILINESZ+1);
????i=0?;
????while?(s[i]?&&?i ????????l[i]?=?(char)tolower((int)s[i]);
????????i++?;
????}
????l[ASCIILINESZ]=(char)0;
????return?l?;
}
/*-------------------------------------------------------------------------*/
/**
??@brief????Skip?blanks?until?the?first?non-blank?character.
??@param????s???String?to?parse.
??@return???Pointer?to?char?inside?given?string.
??This?function?returns?a?pointer?to?the?first?non-blank?character?in?the
??given?string.
?*/
/*--------------------------------------------------------------------------*/
static?char?*?strskp(char?*?s)
{
????char?*?skip?=?s;
????if?(s==NULL)?return?NULL?;
????while?(isspace((int)*skip)?&&?*skip)?skip++;
????return?skip?;
}
/*-------------------------------------------------------------------------*/
/**
??@brief????Remove?blanks?at?the?end?of?a?string.
??@param????s???String?to?parse.
??@return???ptr?to?statically?allocated?string.
??This?function?returns?a?pointer?to?a?statically?allocated?string
??which?is?identical?to?the?input?string?except?that?all?blank
??character
評論
共有 條評論