好文档 - 专业文书写作范文服务资料分享网站

软件著作权-源代码范本 

天下 分享 时间: 加入收藏 我要投稿 点赞

天一博胜企业管理软件V1.0 源代码

1

软件著作权-源代码范本

注意事项:常见的源代码包含:C语言,VB,C++,JAVA,.NET等。

提交的代码必须是源代码的开头载入程序,第30页必须断开,第60页是软件的程序结尾,代码中不得出现与申请表内容不符合的日期,著作权人,软件名字等,不能出现开源代码,不能出现任何版权纠纷。

格式要求:一、源代码应提交前、后各连续30页,不足60页的,应当全部提交。

二、源代码页眉应标注软件的名称和版本号,应当与申请表中名称完全一致,页

眉右上应标注页码,源代码每页不少于50行。

范例如下:

#include #include #include

天一博胜企业管理软件V1.0 源代码

2

#include #include #include

#include #include #include #include #include #include #include #include #include #include #include #include #include #define NS_MAIN 1

#include #endif

#ifdef DLZ

#include #endif

static tybs_boolean_t want_stats = TYBS_FALSE; static char program_name[TYBS_DIR_NAMEMAX] = \static char absolute_conffile[TYBS_DIR_PATHMAX]; static char saved_command_line[512]; static char version[512]; static unsigned int maxsocks = 0; void

ns_main_earlywarning(const char *format, ...) { va_list args; va_start(args, format); if (ns_g_lctx != NULL) { tybs_log_vwrite(ns_g_lctx, NS_LOGCATEGORY_GENERAL, NS_LOGMODULE_MAIN, TYBS_LOG_WARNING, format, args); } else { fprintf(stderr, \ vfprintf(stderr, format, args); fprintf(stderr, \ fflush(stderr); } va_end(args); }

Void ns_main_earlyfatal(const char *format, ...) { va_list args; va_start(args, format); if (ns_g_lctx != NULL) { tybs_log_vwrite(ns_g_lctx, NS_LOGCATEGORY_GENERAL, NS_LOGMODULE_MAIN, TYBS_LOG_CRITICAL, format, args); tybs_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL,

天一博胜企业管理软件V1.0 源代码

3

NS_LOGMODULE_MAIN, TYBS_LOG_CRITICAL, \ } else { fprintf(stderr, \ vfprintf(stderr, format, args); fprintf(stderr, \ fflush(stderr); } va_end(args); exit(1); }

static void

assertion_failed(const char *file, int line, tybs_assertiontype_t type, const char *cond) { if (ns_g_lctx != NULL) { tybs_assertion_setcallback(NULL); tybs_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL, NS_LOGMODULE_MAIN, TYBS_LOG_CRITICAL, \ tybs_assertion_typetotext(type), cond); tybs_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL, NS_LOGMODULE_MAIN, TYBS_LOG_CRITICAL, \ } else { fprintf(stderr, \ file, line, tybs_assertion_typetotext(type), cond); fflush(stderr); } if (ns_g_coreok) abort(); exit(1); }

static void

library_fatal_error(const char *file, int line, const char *format, va_list args) TYBS_FORMAT_PRINTF(3, 0); static void

library_fatal_error(const char *file, int line, const char *format, va_list args) { if (ns_g_lctx != NULL) { tybs_error_setfatal(NULL); tybs_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL, NS_LOGMODULE_MAIN, TYBS_LOG_CRITICAL, \ tybs_log_vwrite(ns_g_lctx, NS_LOGCATEGORY_GENERAL, NS_LOGMODULE_MAIN, TYBS_LOG_CRITICAL, format, args); tybs_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL, NS_LOGMODULE_MAIN, TYBS_LOG_CRITICAL, \ } else {

天一博胜企业管理软件V1.0 源代码

4

fprintf(stderr, \ vfprintf(stderr, format, args); fprintf(stderr, \ fflush(stderr); } if (ns_g_coreok) abort(); exit(1); }

static void

library_unexpected_error(const char *file, int line, const char *format, va_list args) TYBS_FORMAT_PRINTF(3, 0); static void

library_unexpected_error(const char *file, int line, const char *format, va_list args) { if (ns_g_lctx != NULL) { tybs_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL, NS_LOGMODULE_MAIN, TYBS_LOG_ERROR, \ tybs_log_vwrite(ns_g_lctx, NS_LOGCATEGORY_GENERAL, NS_LOGMODULE_MAIN, TYBS_LOG_ERROR, format, args); } else { fprintf(stderr, \ vfprintf(stderr, format, args); fprintf(stderr, \ fflush(stderr); } }

static void

lwresd_usage(void) { fprintf(stderr, \ \ \ [-f|-g] [-n number_of_cpus] [-p port] \ \ \ [-t chrootdir] [-u username] [-i pidfile]\\n\ \ [-m {usage|trace|record|size|mctx}]\\n\}

static void usage(void) { if (ns_g_lwresdonly) { lwresd_usage(); return; } fprintf(stderr, \ \ \ [-p port] [-s] [-t chrootdir] [-u username]\\n\ \ [-m {usage|trace|record|size|mctx}]\\n\}

天一博胜企业管理软件V1.0 源代码

5

static void

save_command_line(int argc, char *argv[]) { int i; char *src; char *dst; char *eob; const char truncated[] = \ tybs_boolean_t quoted = TYBS_FALSE; dst = saved_command_line; eob = saved_command_line + sizeof(saved_command_line); for (i = 1; i < argc && dst < eob; i++) { *dst++ = ' '; src = argv[i]; while (*src != '\\0' && dst < eob) { if (quoted || isalnum(*src & 0xff) || *src == '-' || *src == '_' || *src == '.' || *src == '/') { *dst++ = *src++; quoted = TYBS_FALSE; } else { *dst++ = '\\\\'; quoted = TYBS_TRUE; } } } INSIST(sizeof(saved_command_line) >= sizeof(truncated)); if (dst == eob) strcpy(eob - sizeof(truncated), truncated); else *dst = '\\0'; }

static int

parse_int(char *arg, const char *desc) { char *endp; int tmp; long int ltmp; ltmp = strtol(arg, &endp, 10); tmp = (int) ltmp; if (*endp != '\\0') ns_main_earlyfatal(\ if (tmp < 0 || tmp != ltmp) ns_main_earlyfatal(\ return (tmp); }

static struct flag_def { const char *name; unsigned int value; } mem_debug_flags[] = { { \ TYBS_MEM_DEBUGTRACE }, { \ { \ { \

软件著作权-源代码范本 

天一博胜企业管理软件V1.0源代码1软件著作权-源代码范本注意事项:常见的源代码包含:C语言,VB,C++,JAVA,.NET等。提交的代码必须是源代码的开头载入程序,第30页必须断开,第60页是软件的程序结尾,代码中不得出现与申请表内容不符合的日期,著作权人,软件名
推荐度:
点击下载文档文档为doc格式
40cjl7rxwz9gaia48888
领取福利

微信扫码领取福利

微信扫码分享