Search:

Type: Posts; User: lolguy

Page 1 of 8 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    15
    Views
    9,086

    well i m not saying its the function fault I was...

    well i m not saying its the function fault I was just curious why memset when i pass to buffer it fixes it now i now that i Should also add +1 for strlen to add the Null character to the string
  2. Replies
    15
    Views
    9,086

    also today i Noticed while coding that send...

    also today i Noticed while coding that send doesnt send Null terminator with send itself you have to add strlen(buffer)+1 maybe thats the case with memset
  3. Replies
    15
    Views
    9,086

    info on memset and recv

    Hello I just downloaded few sources in networking in most of them they do

    memset(buffer, 0, sizeof(buffer));
    and after that recv the buffer
    I had a problem before in a program but when i added...
  4. Thread: Switch Problem

    by lolguy
    Replies
    35
    Views
    5,585

    why is it safer than scanf ?

    why is it safer than scanf ?
  5. Thread: Switch Problem

    by lolguy
    Replies
    35
    Views
    5,585

    i hope this helps i used getchar in it for...

    i hope this helps
    i used getchar in it for scanning the char


    #include <stdio.h>
    #include <ctype.h>
    int main(void){
    char c;
    for(;;){
    puts("AIRLINE RESERVATION SYSTEM \n"
  6. Thread: Switch Problem

    by lolguy
    Replies
    35
    Views
    5,585

    s_scanf reads from an array right not normal int ?

    s_scanf reads from an array right not normal int ?
  7. Replies
    24
    Views
    3,812

    ya i just tested it works with char...

    ya i just tested it works with
    char arr[256]={67}
    but fills only arra[0] not all array other will be NULL
  8. Thread: Assembly in C?

    by lolguy
    Replies
    53
    Views
    10,521

    it compiles on my machine with gcc

    it compiles on my machine with gcc
  9. since u didnt yet do pointers u can by return...

    since u didnt yet do pointers u can by return values here simple code to demonstrate it


    #include <stdio.h>
    int calculate(int num,int nums)
    {
    float x;
    return x=num +nums;
    }
  10. Replies
    9
    Views
    1,980

    wouldnt it be go to the function and get...

    wouldnt it be go to the function and get intilised as stuff ?
  11. Replies
    9
    Views
    1,980

    then when its put to my function it will be alrdy...

    then when its put to my function it will be alrdy intilised to int ?coz its a void ptr?
  12. Replies
    9
    Views
    1,980

    but ptrs to void can be ptrs to anything srry for...

    but ptrs to void can be ptrs to anything srry for fflush i think its a habbit i need to get rid of it
  13. Replies
    9
    Views
    1,980

    i get msv6 this error C:\the test\main.c(16) :...

    i get msv6 this error
    C:\the test\main.c(16) : warning C4700: local variable 'y' used without having been initialized
    shouldnt alrdy y be intilised ?
  14. Replies
    9
    Views
    1,980

    void *ptr problem

    hey guys it was my first time using void as parameter my code fails hardly though i dunno whats the problem in failing
    i m srry had problem in return code


    #include <stdio.h>
    #include...
  15. Replies
    2
    Views
    1,939

    i m trying to code a program in whish the server...

    i m trying to code a program in whish the server will connect to the client so thats y i want the client to accept all connection on that port ?
  16. Replies
    2
    Views
    1,939

    How can i accept any connection

    i m trying to code a program that accept any connection but on specific port is that possible ?
  17. Replies
    30
    Views
    2,872

    you should ident your code lil bit and put...

    you should ident your code lil bit and put instead of z put num coz thats ur equation whish sum = x+y
  18. Replies
    30
    Views
    2,872

    should it fix it or only detect if there its...

    should it fix it or only detect if there its right or not ?
    i coded a fix program for it


    #include <stdio.h>
    void string_fixer(char *buffer)
    {
    int i;//loop counter
    ...
  19. Thread: whats A mutex

    by lolguy
    Replies
    2
    Views
    1,466

    whats A mutex

    i m srry guys i searched google but msdn i didnt rlly understand it thanks for helping in advanced.
  20. Replies
    54
    Views
    11,471

    you can do it like this 2 void...

    you can do it like this 2


    void base_genrator(int num)
    {
    switch(num){
    case 2:
    binary_base
    codegoeshere
    break;
  21. Replies
    8
    Views
    2,154

    srry 1 more question does recv in non blocking...

    srry 1 more question does recv in non blocking same as blocking i mean it returns smaller or = to zero if it failed ?
  22. Replies
    8
    Views
    2,154

    i did in main thats y before it crashed coz i...

    i did in main thats y before it crashed coz i didnt intilised it before
  23. Replies
    7
    Views
    8,552

    oh i forgot WSAstartup stupid me :D

    oh i forgot WSAstartup stupid me :D
  24. Replies
    8
    Views
    2,154

    also i thought that will just connect it wont...

    also i thought that will just connect it wont like send or recv something ? but program just crash after running
  25. Replies
    8
    Views
    2,154

    i changed that to tcp but now how can i connect...

    i changed that to tcp but now how can i connect after i got it intilised?
Results 1 to 25 of 183
Page 1 of 8 1 2 3 4