C 网络应用开发平台 nope.c

码农软件 · 软件分类 · 网络工具包 · 2019-02-27 09:29:19

软件介绍

nope.c 是一个超轻量级的平台,用来创建轻量快速和可伸缩的网络应用。

示例代码:

#include "server.h"
#include "nopeutils.h"

void factor(int client,const char * reqStr, const char * method);

void server(Request request)
{ 
    routefh(request,"/factor",&factor);
}

void factor(int client,const char * reqStr, const char * method) {
    char *nStr=HSCANIT(client,reqStr,"Number to factor:");

    if (strcmp(nStr,UNDEFINED)!=0) {
        long n = strtol(nStr,NULL,10);
        nprintf(client,"Factors of %li are: ", n);
        long l;
        for(l=2;l<=n;++l) {
            if(n%l==0) {
                nprintf (client,"%li ",l);
            }
        }
    }
}

本文地址:https://www.codercto.com/soft/d/230.html

Web 2.0 Architectures

Web 2.0 Architectures

Duane Nickull、Dion Hinchcliffe、James Governor / O'Reilly / 2009 / USD 34.99

The "Web 2.0" phenomena has become more pervasive than ever before. It is impacting the very fabric of our society and presents opportunities for those with knowledge. The individuals who understand t......一起来看看 《Web 2.0 Architectures》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

在线进制转换器
在线进制转换器

各进制数互转换器