Search:

Type: Posts; User: ashok449

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    2,658

    Hello Salem, Thanks for the response. ...

    Hello Salem,

    Thanks for the response.



    void *MyCalloc(size_t size) {
    size_t new_size = ((size + 3) & ~0x3);
    size_t *result = calloc(1,new_size + sizeof(size_t));
    if (...
  2. Replies
    3
    Views
    2,658

    Calloc() problem on ARM code/compiler

    Hello All,

    All I am trying here writting wrapper for calloc() (IAR ARM compiler ) so that I can place size of allocated memory in the first 4 bytes of the memory and use the save while freeing the...
  3. Replies
    1
    Views
    4,736

    problem in gdbserver: killing inferior

    hello All,

    I'm trying to debug a program remotely by using gdbserver

    gdbserver 150.158.74.131:23456 --attach 15397(pid of my program)

    I have successfully debugged the program with host, But...
  4. Replies
    2
    Views
    1,803

    Actually I have a main program, that creates a...

    Actually I have a main program, that creates a Thread, because of unknown reasons the thread is creating another thread (extra) (extra Thread has the Ppid of the earlier thread)

    I'm not using any...
  5. Replies
    2
    Views
    1,803

    how to catch child program using signals

    Hello All,


    I have a program(process) creating a new process after a long run with the PPID of my program(even name was same).

    Can I catch this child program using signal handlers?

    What all...
  6. Replies
    1
    Views
    1,215

    seperate strings

    Dear All,

    I have a char array = "ashok:id:mobile"

    now I wanna store "ashok" into a[], "id" into b[] and "mobile" into c[], how can i do that ?


    Thanks in advance ....

    -Ashok
  7. Replies
    8
    Views
    59,311

    Thanks for all, These are all system specific...

    Thanks for all,

    These are all system specific and defined in asm/types.h


    thanks ...
  8. Replies
    8
    Views
    59,311

    below code showing errors __u32 undeclared ...

    below code showing errors

    __u32 undeclared


    #include <stdio.h>
    #include <stdlib.h>
    int main()
    {
  9. Replies
    8
    Views
    59,311

    what are __u32, __u16, __u8 ?

    Dear All,

    what are __u32, __u16, __u8 ?




    typedef struct a
    {
    __u32 ival;
  10. Replies
    2
    Views
    2,550

    strtok() worked for me Thanks ...

    strtok() worked for me


    Thanks ...
  11. Replies
    2
    Views
    2,550

    read characters till white space

    Dear All,

    how to read read characters till white space



    char *a;
    a =(char *)malloc(15);
    strcpy(a, "rollnumber 449");
  12. Thread: conversion

    by ashok449
    Replies
    2
    Views
    884

    yeah, got it . Thanks

    yeah, got it .

    Thanks
  13. Thread: conversion

    by ashok449
    Replies
    2
    Views
    884

    conversion

    Dear All,

    I have an application that reads integer as character and I wanted it as an integer. how to convert the same?



    char *pval;
    strcpy(pval, "5780");
  14. Replies
    31
    Views
    3,827

    thanks all, for your great support

    thanks all, for your great support
  15. Replies
    31
    Views
    3,827

    here is the entire code, #include ...

    here is the entire code,


    #include <stdio.h>
    #include <string.h>

    typedef struct {
    char *buffer;

    }sample1;
  16. Replies
    31
    Views
    3,827

    here is updated code int main(void) {...

    here is updated code



    int main(void)
    {
    sample1 *dev;

    dev = ( sample1 * ) malloc(sizeof(sample1));
  17. Replies
    31
    Views
    3,827

    I tried with buffer = (char *) malloc(10); ...

    I tried with

    buffer = (char *) malloc(10);

    it leads me to other errors, anyone please send back working code


    Thanks in advance ...
  18. Replies
    31
    Views
    3,827

    Segmentation fault error

    Dear All,

    I am getting Segmentation fault error for below code, how to erase the same.


    #include <stdio.h>
    #include <string.h>


    typedef struct {
  19. Replies
    13
    Views
    32,722

    zacs7 and brewbuck, you see in this thread I...

    zacs7 and brewbuck, you see in this thread I almost provide everything except a clarification which I require. Thats all I need and thats all about a forum is.


    If getting sample code from google...
  20. Replies
    13
    Views
    32,722

    Now, Anyone can give me a small real-time example...

    Now, Anyone can give me a small real-time example on semaphore
  21. Replies
    13
    Views
    32,722

    retval = semop(id, operations, 1); if retval...

    retval = semop(id, operations, 1);


    if retval ==0 then semop is successfull which means I need to place my code here, If so how to aquire/release again.





    if(retval ===0)
  22. Replies
    13
    Views
    32,722

    Ok, here is some code I found on net. Plz tell me...

    Ok, here is some code I found on net. Plz tell me how this works.




    #include <stdio.h>
    #include <sys/types.h>
    #include <sys/ipc.h>
    #include <sys/sem.h>
  23. Replies
    13
    Views
    32,722

    I have an Idea on Semaphores but dont know how to...

    I have an Idea on Semaphores but dont know how to apply on a real time application.
  24. Replies
    13
    Views
    32,722

    Sample Semaphore program on linux

    Dear All,

    I am looking for a Sample Semaphore program on linux, Plz help me
  25. Replies
    10
    Views
    1,807

    Thats great ... Thank you very much It helped...

    Thats great ... Thank you very much

    It helped me alot to understand all these.


    Thanks ssharish.
Results 1 to 25 of 32
Page 1 of 2 1 2