Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. JoeCsI

    Nested structures

    Sorry ... I forgot to add modify else ... You're code line should be exchanged for this one: void * temp = ( FirewallRule * ) realloc( programs[ id ].firewallRules, ( rulesCount + 1 ) * sizeof( FirewallRule ) ); HIH (Hope it helped!) Cheers, Joe
  2. JoeCsI

    Nested structures

    Hi there, why you keep reallocating everytime you add a new firewall rule ? Just to keep the list together as an array? I mean: Each program has its own rules list (you already have a rule count) which grows dinamically. For that, you need to make some changes on your structures: 1) Add field...

Part and Inventory Search

Back
Top