Advertisement
Guest User

Untitled

a guest
Oct 4th, 2015
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. double look_up_stock_price(char search_name[MAX_STOCK_NAME_LENGTH],struct Node_stock* head){
  2.  
  3. double result_price;
  4.  
  5. while( head != NULL){
  6.  
  7. if(strcmp(search_name,head->data.stock_name)){
  8. result_price = head->data.stock_price;
  9. return result_price;
  10. }
  11. head = head->next;
  12. }
  13.  
  14. return -1e3;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement