Skip to content

Instantly share code, notes, and snippets.

View valstu's full-sized avatar

Valtteri Karesto valstu

View GitHub Profile
@valstu
valstu / another_hello_world.c
Last active November 18, 2021 12:14
Example C Files
#include <stdio.h>
int main() {
// Added comment here
// Another here
// printf() displays the string inside quotation
printf("Hello, World!");
return 0;
}
@valstu
valstu / accept.c
Last active December 21, 2021 13:09
Accept hook
/**
* This hook just accepts any transaction coming through it
*/
// Some comment
#include "hookapi.h"
int64_t cbak(int64_t reserved) {
return 0;
// Here should be something!!! does this work?
@valstu
valstu / test.c
Last active November 25, 2021 07:53
// Hello
@valstu
valstu / accept.c
Last active November 25, 2021 14:30
/**
* This hook just accepts any transaction coming through it
*/
// Some comment
int64_t cbak(int64_t reserved) {
return 0;
}
/**
* This hook just accepts any transaction coming through it
*/
// Some comment
int64_t cbak(int64_t reserved) {
return 0;
}
/**
* This hook just accepts any transaction coming through it
*/
// Some comment
int64_t cbak(int64_t reserved) {
return 0;
}
/**
* This hook just accepts any transaction coming through it
*/
// Some comment
int64_t cbak(int64_t reserved) {
return 0;
}
/**
* This hook just accepts any transaction coming through it
*/
// Some comment
int64_t cbak(int64_t reserved) {
return 0;
}
@valstu
valstu / test.c
Last active November 25, 2021 20:53
// Testing ss