Search:

Type: Posts; User: huwan

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    11
    Views
    15,482

    Thank you so much guys! Your inputs/information...

    Thank you so much guys!
    Your inputs/information really "brighten" my brain!

    So, at the first place we must be sure of how many/much memory our program needs?but this could probably leads to...
  2. Replies
    11
    Views
    15,482

    What is the alternative to malloc?

    Hi all,

    As we all know, one of the MISRA C rule discourages the use of malloc for dynamic memory allocation.

    So, does anyone know is there any alternatives for malloc which do not break this...
  3. Replies
    8
    Views
    27,916

    actually I am looking for some strong points to...

    actually I am looking for some strong points to convince my company management to approve my project (creating a MISRA-C code checker).

    Currently, we have been using Klocwork as a static code...
  4. Replies
    8
    Views
    27,916

    LOL....you are right!! but anyway, I am still...

    LOL....you are right!!

    but anyway, I am still looking for some opinions and information for the doubts I have in my previous reply. I need these information for my presentation on this Friday....
  5. Replies
    8
    Views
    27,916

    Thanks Salem! That really helps! Does anyone...

    Thanks Salem! That really helps!

    Does anyone know what are the differences between Klocwork and Misra-C Code checker?since both are also static code checkers.
    What are the errors or warnings do...
  6. Replies
    8
    Views
    27,916

    Thanks for your info. Do you know where could...

    Thanks for your info.

    Do you know where could I get the sample source code of such a tool?
  7. Replies
    8
    Views
    27,916

    MISRA C Checker open source

    Hi all,

    I am working on a project to create a MISRA C code checker to verify if the code/program is compliant to the MISRA C 2004 rules.

    Can someone let me know what are the similar code...
  8. Replies
    10
    Views
    27,597

    When we do constant global variable assignment,...

    When we do constant global variable assignment, is it a must to always assign it to a variable which is also a constant?

    For eg:

    In const_header.h


    extern const int volume_arr[] ;
    extern...
  9. Replies
    10
    Views
    27,597

    Yeah! You are right! I just realised test.c did...

    Yeah! You are right!
    I just realised test.c did not include test_user_def.h, that's why there was no error.

    But for other const global variables declaration files, they included the header file...
  10. Replies
    10
    Views
    27,597

    Here is another question. In test.c ...

    Here is another question.

    In test.c


    extern const int try_table[] = {1, 2, 3};


    In test_user_def.h
  11. Replies
    10
    Views
    27,597

    If we declare a constant array with "const" like...

    If we declare a constant array with "const" like below,

    In abc.c


    ....
    const int tone_table[] ={1, 2, 3};


    in header_def.h
  12. Replies
    10
    Views
    27,597

    Thanks a lot Foxman!! But when I built it with...

    Thanks a lot Foxman!!

    But when I built it with C compiler, there was no such error when I didn't put "const".
    Is this also one of the differences btw C and C++?
  13. Replies
    10
    Views
    27,597

    extern const?Please help

    Hi guys,

    I am kinda confused with extern const and const.
    Please help to explain the usage of both.
    I am having compilation/linking error when using extern const and const.

    The code are...
  14. Replies
    18
    Views
    9,995

    Argghh!! sigh...what can I do? I have been...

    Argghh!! sigh...what can I do?
    I have been searching around and trying with different functions but none of them is working.
  15. Replies
    18
    Views
    9,995

    how about "settimeofday" and "gettimeofday"? Can...

    how about "settimeofday" and "gettimeofday"?
    Can I use these functions in my c++ program?
  16. Replies
    18
    Views
    9,995

    I have tried with time() but somehow the...

    I have tried with time() but somehow the compilation failed.
    It says "struct tm" and time() are undefined.
    I have included "time.h" but not sure why it failed.
  17. Replies
    18
    Views
    9,995

    Yeah very silly!! Besides of SetSystemTime...

    Yeah very silly!!

    Besides of SetSystemTime and GetSystemTime, are there any other c++ functions that can be used to get and set the system time?I mean alternative method.
    I have no choice!...
  18. Replies
    18
    Views
    9,995

    Yeah! std_types.h is a self-defined header file...

    Yeah! std_types.h is a self-defined header file and it must not be excluded.
    Meaning that I must include std_types.h in my program and I am not allowed to modify this file.

    Is there any other...
  19. Replies
    18
    Views
    9,995

    If I am using SetSystemTime and GetSystemTime, I...

    If I am using SetSystemTime and GetSystemTime, I must include <windows.h> right?

    But I have this compilation error:->

    C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\basetsd.h(33) : error...
  20. Replies
    18
    Views
    9,995

    How to get and set windows time and date

    Hi,

    Can you guys show me how to get and set the windows system time and date?
    Is this "time(time_t long_time)" a function to get the windows time and date?
    How about set time and date?
    Please...
  21. Thread: HELP!! Urgent !!

    by huwan
    Replies
    21
    Views
    3,487

    What if the data type is a structure?for eg:...

    What if the data type is a structure?for eg: menuItem_t
    Is the below definition correct?


    menuItem_t **someData;

    someData = new (*menuItem_t)[MAXSIZE];

    delete [] someData;
  22. Thread: HELP!! Urgent !!

    by huwan
    Replies
    21
    Views
    3,487

    Compile with Visual C++. At compile time, we...

    Compile with Visual C++.

    At compile time, we may not know how many elements are need to be allocated.
    So, we would not know what array size to be defined. If that is the case, how are we going to...
  23. Thread: HELP!! Urgent !!

    by huwan
    Replies
    21
    Views
    3,487

    Yeah. The naming is kinda confusing. We will...

    Yeah. The naming is kinda confusing. We will correct them.

    1 quick question:



    menuItem_t **ptr_1;

    and
  24. Thread: HELP!! Urgent !!

    by huwan
    Replies
    21
    Views
    3,487

    oops!! I m sory. Anyway, someone who declared...

    oops!! I m sory.

    Anyway, someone who declared the below stuff has just informed me, there was a mistake in the previous declarations.
    Check the below declaration:-



    menu_item_t * *...
  25. Thread: HELP!! Urgent !!

    by huwan
    Replies
    21
    Views
    3,487

    Can you show me the complete code? I still...

    Can you show me the complete code?
    I still couldn't catch the solution you provided.
Results 1 to 25 of 30
Page 1 of 2 1 2