start new:
tmux
start new with session name:
tmux new -s myname
#include <stdio.h> | |
int main(int argc, char *argv[]) | |
{ | |
double x = 516.80, y = 0; | |
long resp1 = 0, resp2 = 0; | |
resp1 =(long) (x * 100.0); | |
y = x * 100.0; | |
resp2 = (long)y; | |
printf("x[%f] y[%f] resp1[%ld] resp2[%ld] [%f]\n", x, y, resp1, resp2, (x * 100.0)); |
#include <stdio.h> | |
#include <limits.h> | |
#include <unistd.h> | |
void f1(void) | |
{ | |
sleep(2); | |
} | |
unsigned int f2(unsigned int x) |
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <netdb.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <arpa/inet.h> | |
#define ADDSZ (50) |
/* | |
* 1 - is | |
* 0 - is not | |
*/ | |
int a2gs_AddSubDate_isLeapYear(int year) | |
{ | |
if(year % 4 == 0){ | |
if(year % 100 == 0){ | |
if(year % 400 == 0) | |
return(1); |
/* | |
gcc -o loopFgets loopFgets.c -g -std=c11 -Wall -Wextra -Wno-unused-parameter -Wno-unused-but-set-parameter -Wno-unused-result -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L -D_POSIX_SOURCE=1 -D_DEFAULT_SOURCE=1 -D_GNU_SOURCE=1 | |
*/ | |
#include <stdio.h> | |
#include <string.h> | |
#include <errno.h> | |
#define MAX_BUFF (10000) |
#!/usr/bin/sh | |
DATA=`date +'%d%m%Y'` | |
TABELA=TABELA_ABC | |
CAMPO=DATA_CRIACAO | |
TEMPO=30 | |
DB_USER=db_user | |
DB_PASSWORD=db_user_password | |
DB_INSTANCE=connection_instance |
#!/usr/bin/sh | |
func(){ | |
awk -v VAR1=$3 -v VAR2=$4 ' | |
BEGIN{ | |
} | |
{ | |
print VAR1 VAR2 | |
# INSTALL INSTRUCTIONS: save as ~/.gdbinit | |
# | |
# DESCRIPTION: A user-friendly gdb configuration file. | |
# | |
# REVISION : 7.3 (16/04/2010) | |
# | |
# CONTRIBUTORS: mammon_, elaine, pusillus, mong, zhang le, l0kit, | |
# truthix the cyberpunk, fG!, gln | |
# | |
# FEEDBACK: https://www.reverse-engineering.net |
#include <stdio.h> | |
#include <stdlib.h> | |
static char *message; | |
void cleanup(void) | |
{ | |
printf("message = \"%s\"\n", message); | |
} |