From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@cse.psu.edu From: paurea@plan9.escet.urjc.es MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: [9fans] same functions everywhere Date: Wed, 23 Apr 2003 11:16:27 +0200 Topicbox-Message-UUID: 9673c7fa-eacb-11e9-9e20-41e7f4b1d025 Reading the code for different commands and filesystems, I have found there are at least three functions repeated with equivalent implementations all over the place. These are erealloc emalloc and estrdup. They call the function without the e and call sysfatal on error. Wouldn't it be more economical and clear to have them on a library?. On another terms, it would be great to have some function, macro, mechanism or whatever to describe calling a function and calling sysfatal on error, because this usage of functions repeats itself a lot. Gorka