代码搜索:sprintf
找到约 7,065 项符合「sprintf」的源代码
代码结果 7,065
www.eeworm.com/read/365326/9869683
c inifile.c
#define MEMO '#'
#include "stdio.h"
#include "string.h"
#include "stdlib.h"
#include "inifile.h"
/*
功能:在str中是否存在substr
返回:substr第一次在str中出现的位置
*/
int instr(char *str,char *substr)
{
int i,j;
int s
www.eeworm.com/read/365326/9869685
c trim.c
#include "string.h"
#include "stdlib.h"
/*
Release: 2003-01-03 (Support chinese)
*/
char* trim(char *str)
{
int len;
char *p,*pend;
len=strlen(str);
p = str;
pend=str+len-1;
www.eeworm.com/read/169161/9877810
cpp mini ftpserver.cpp
// Mini FtpServer.cpp : Defines the entry point for the console application.
#include "stdafx.h"
#include
#include
#include
#define WSA_RECV 0
#defin
www.eeworm.com/read/364932/9886853
c ctlstr.c
#include "calld.h"
/*
* Make a printable string of the character "c", which may be a
* control character. Works only with ASCII.
*/
char *
ctl_str(unsigned char c)
{
static char tempstr[6]; /*
www.eeworm.com/read/364932/9886865
c request.c
#include "calld.h"
int /* return 0 if OK, -1 on error */
request(Client *cliptr)
{
pid_t pid;
/*
* Position where this client left off last (or rewind).
*/
errmsg[0] = 0;
sys_posn(clip
www.eeworm.com/read/167847/9950037
c snprintf.c
/*
* Throughout the book I use snprintf() because it's safer than sprintf().
* But as of the time of this writing, not all systems provide this
* function. The function below should only be built
www.eeworm.com/read/363367/9957447
m lpdemo.m
% LPDEMO
% Demo of the Laplacian pyramid functions
x = imread('cameraman.tif');
x = double(x)/256;
% Laplacian decomposition using 9/7 filters and 5 levels
pfilt = '9/7';
n = 5;
y = lpd(x, '9/7', n)
www.eeworm.com/read/167116/9980485
m goldfract.m
function goldfract(n)
%GOLDFRACT Golden ratio continued fraction.
% GOLDFRACT(n) displays n terms.
p = '1';
for k = 1:n
p = ['1+1/(' p ')'];
end
p
p = 1;
q = 1;
for k = 1:n
s = p;
p = p
www.eeworm.com/read/362500/9995956
m anova2w.m
function anova2w(dat,alpha)
%ANOVA2W Two way analysis of variance
% Calculates two way ANOVA table and tests significance of
% between factors variation (it is assumed that each column
% of the
www.eeworm.com/read/362500/9996022
m simcaprd.m
function [class,rtsq,rq] = simcaprd(newx,mod,out);
%SIMCAPRD Projects new data into SIMCA model.
% Compares new data to an existing SIMCA model. The inputs
% are the new data (newx) and the SIMCA