code:
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
int
main()
{
Type: Posts; User: grytskiv
code:
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
int
main()
{
my code:
#include <stdio.h>
int *pPointer;
void
my_function()
code:
#include <stdio.h>
#include <stdlib.h>
int
main()
{
my simple source code:
#include <stdio.h>
#include <stdlib.h>
int
main()
{
How I can recive response from httpd (for example Apache). Where I can get size response?
My code:
#define BUFFER_SIZE 1024
char message[] = "GET /index.php HTTP/1.1\r\nHOST: ...
Warning while compiling program with "\s" modificator in function regcomp
Terminal output:
grytskiv@ZXDSL831II:~/socket/proxy$ gcc client.c -g -o client && ./client
client.c: In function...
I study pThread, and now I have problem with sending arg (struct data type) to new thread...
In terminal I have this output:
grytskiv@ZXDSL831II:~/thread/$ gcc -l pthread scaner.c -o scaner &&...
THANKS for example!!!
Ok, I write some code for get ALL numbers from string:
int error = 0;
regex_t re;
size_t a = 2;
regmatch_t arrayOfMatches[10];
int counter=0;
int *Matches;
How get all numbers by regex?
If I input string like "34df4354sdf234ds23", after regexec I get only:
submatch: 1
match 0: 34
How get something like this:
submatch: 4
match 0: 34
SEND FUNCTION:
void menu_r(char *buffer,struct sockaddr_in addr_slave)
{
printf("%s\n",buffer); /* debug output */
struct sockaddr_in addr;
int sd,addr_size;
char message[100];