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

More Eric Meyer on CSS (Voices That Matter)

More Eric Meyer on CSS (Voices That Matter)

Eric A. Meyer / New Riders Press / 2004-04-08 / USD 45.00

Ready to commit to using more CSS on your sites? If you are a hands-on learner who has been toying with CSS and want to experiment with real-world projects that will enable you to see how CSS......一起来看看 《More Eric Meyer on CSS (Voices That Matter)》 这本书的介绍吧!

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器

html转js在线工具
html转js在线工具

html转js在线工具