I have the following functions which shifts the text by 4 and 8 characters.
Code of baul :)
Code:
/*
* Hanx [Proyecto Fedora Peru] wth Code
* crc.c - app
*
* This program is private version, for anti-educational purposes and without any
* explicit or implicit warranty; in no event shall the author or
* contributors be liable for any direct, indirect or incidetal damages
In the following program though most of the working part of the program is commented out, it gives seg fault. reducing the value of MAX to say 10000 removes the seg fault. Why is this happening? it should be only 1 MB only. Is 1 MB too big for an array?
#include <stdio.h>
#define MAX 1000010
int main()
{
I keep getting the warnings such as
"warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast" about strcmp and strdup. I'm pretty new to C and I feel like I've tried a million things with no luck...I don't really get what's going on.
Any help would be really appreciated :)
printf("switch to menu driven mode\n");
I have the following code and want to update shiftDesc inside the function.
I am writing some code in C++ to print a message using fprintf
Here is an example
Code:
void pr_desc(
FILE* stream,
int shift,
const char* desc) {
const char* format="%*s\e[0;37m%s\e[0m\n";
fprintf(stream,format,shift,"",desc);
}
I call it using
Code:
const char* de
Greetings,
Suppose we have this piece of code, on Linux/i686
(my machine is Slackware Linux 13.1, 32 bit):
Code:
char sc[]= /* 24 bytes */ "\x31\xc0" /* xorl %eax,%eax
Situation:
I have an array of structures:
Code:
struct my_struct_type {
char tags_sn[5];
char group_c;
char is_err_c;
};
struct my_struct_type stuff[] = {
"abcd", 'A', 'E',
"efgh", 'B', 'E',
&nb
hello
i have made a small program to find the md5 checksum of a string.i am using xshell to compile the program.
Code:
#include <string.h>
#include <stdio.h>
#include <sys/types.h>
#include <md5.h>
int main(int argc, char * argv) {
MD5_CTX context;