code_junkie

Line width formatting standard

Nov 12th, 2011
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. status = do_something();
  2. if (status == error)
  3. {
  4. do_error_handling();
  5. return;
  6. }
  7. /* do you regular flow */
  8. status = do_more();
  9. if (status == error)
  10. {
  11. do_error_handling();
  12. return;
  13. }
  14. /* do more of you regular flow and keep you line 80 chars*/
  15.  
  16. status = do_something();
  17. if (status == succes)
  18. {
  19. /* do you regular flow */
  20. status = do_more();
  21. if (status == success)
  22. {
  23. /* do you regular flow */
  24. /* nest again and get line behind visible screen */
  25. }
  26. else
  27. {
  28. /* do error handling */
  29. }
  30.  
  31. }
  32. else
  33. {
  34. /* do error handling */
  35. }
  36.  
  37. /* example.txt 0.00 UTF-8 dh:2008-11-09
  38. *---|----1----|----2----|----3----|----4----|----5----|----6----|----7----*
  39. */
Add Comment
Please, Sign In to add comment