User Profile

Collapse

Profile Sidebar

Collapse
ammarSyed
ammarSyed
Last Activity: Feb 23 '13, 11:35 PM
Joined: Feb 23 '13
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ammarSyed
    replied to remove memory leak from this function strcpy
    in C
    memory leak warning strcpy

    Warning 1 warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_ WARNINGS. See online help for details. D:\Visual Studio WebApplications \test memory leak 1\test memory leak 1\test memory leak 1.cpp


    how to remove this warning........ .
    See more | Go to post

    Leave a comment:


  • ammarSyed
    started a topic remove memory leak from this function strcpy
    in C

    remove memory leak from this function strcpy

    Code:
    node_pointer *structures = new node_pointer;
     char buf[] = "dsdsdsdsdsds\0";
     structures->common_fields = buf;
    
    
      strcpy(structures>common_fields,"aaaaasfd\0");
      cout<<structures->common_fields;
    Syed Muhammad Ammar: memory leak error at strcpy function.....
    See more | Go to post
    Last edited by zmbd; Feb 23 '13, 10:15 PM. Reason: [Z{Please use the <CODE/> formatting button to format your posted code and SQL}]
No activity results to display
Show More
Working...