代码搜索:Local
找到约 10,000 项符合「Local」的源代码
代码结果 10,000
www.eeworm.com/read/450639/7479761
dopc2
#!/usr/local/bin/perl
@PC2_C=(14,17,11,24, 1, 5,
3,28,15, 6,21,10,
23,19,12, 4,26, 8,
16, 7,27,20,13, 2,
);
@PC2_D=(41,52,31,37,47,55,
30,40,51,45,33,48,
44,49,39,56,34,53,
46,42,
www.eeworm.com/read/450470/7483164
c localerr.c
#include
void local_values(void)
{
int a = 1, b = 2, c = 3;
printf("a contains %d b contains %d c contains %d\n", a, b, c);
}
void main(void)
{
printf("a contains %
www.eeworm.com/read/450470/7483337
c timezone.c
#include
#include
void main(void)
{
tzset();
printf("Difference between local and GMT is %d hours\n",
timezone / 3600);
}
www.eeworm.com/read/450285/7486178
c csend.c
/* csEnd.c - Crystal Semiconductor CS8900 network interface driver */
/* */
/* Copyright 2000 Crystal Semiconductor
www.eeworm.com/read/450285/7486187
bak csend.c.bak
/* csEnd.c - Crystal Semiconductor CS8900 network interface driver */
/* */
/* Copyright 2000 Crystal Semiconductor
www.eeworm.com/read/450121/7490360
lua readonly.lua
-- make global variables readonly
local f=function (t,i) error("cannot redefine global variable `"..i.."'",2) end
local g={}
local G=getfenv()
setmetatable(g,{__index=G,__newindex=f})
setfenv(1,g)
-
www.eeworm.com/read/450121/7490361
lua bisect.lua
-- bisection method for solving non-linear equations
delta=1e-6 -- tolerance
function bisect(f,a,b,fa,fb)
local c=(a+b)/2
io.write(n," c=",c," a=",a," b=",b,"\n")
if c==a or c==b or math.abs(a-b)
www.eeworm.com/read/450121/7490364
lua fib.lua
-- fibonacci function with cache
-- very inefficient fibonacci function
function fib(n)
N=N+1
if n
www.eeworm.com/read/450121/7490366
lua trace-globals.lua
-- trace assigments to global variables
do
-- a tostring that quotes strings. note the use of the original tostring.
local _tostring=tostring
local tostring=function(a)
if type(a)=="string" then
www.eeworm.com/read/450121/7490371
lua env.lua
-- read environment variables as if they were global variables
local f=function (t,i) return os.getenv(i) end
setmetatable(getfenv(),{__index=f})
-- an example
print(a,USER,PATH)