
179 S.E.2d 177 (1971)
10 N.C. App. 457
Allen J. BRANDON
v.
Jane Hutchins BRANDON.
No. 7121DC27.
Court of Appeals of North Carolina.
February 24, 1971.
*179 Deal, Hutchins & Minor by Richard Tyndall, Winston-Salem, for defendant appellant.
Pettyjohn & Dunn v. H. Glenn Pettyjohn, Winston-Salem, for plaintiff appellee.
BRITT, Judge.
Defendant first assigns as error the entry of order by the trial court awarding plaintiff custody of the child pending a hearing. G.S. § 50-13.5(d) (2) provides that if the circumstances of the case render it appropriate, upon gaining jurisdiction of the minor child the court may enter orders for the temporary custody and support of the child, pending service of process or notice. G.S. § 50-13.5(c) (2) provides that the courts of this state have jurisdiction to enter orders providing for the custody of a minor child when the child resides, has his domicile, or is physically present in this state. The verified complaint and affidavit indicate that the child had her residence, domicile and was physically present in the state at the time of the entry of the order.
In 3 Lee, N.C.Family Law, Sec. 222, 1968 Cumulative Supplement, p. 15, we find the following:
"There may be occasions when there is considerable urgency for a temporary order for the custody of a child. In such instances the judge may reach a decision on the basis of affidavits and other evidence produced at a preliminary hearing. The persons who have signed the affidavits are, of course, not present and there is no opportunity to cross examine them, but this is said not to be objectionable because the ultimate right of examination will be afforded the parties at the trial of the cause. The real reason is that the welfare and custody of a small child is an urgent matter in which substantial harm can be caused by unnecessary delay. Furthermore, all custody orders are from their very nature temporary and founded upon conditions and circumstances existing at the time of the hearing."
We hold that the ex parte order entered in this case was authorized; furthermore, the question raised is moot. The assignment of error is overruled.
Defendant assigns as error the failure of the trial court to allow her motion for a postponement of the hearing when defendant did not have five days notice. The record on appeal reveals that when the case was called for hearing on 29 June 1970 the following transpired:
MR. TYNDALL: If it please the court, the defendant moves to continue the case on the grounds that we have not been able to contact all the witnesses and we are not ready to proceed.
MR. PETTYJOHN: We oppose the motion to continue since we are ready to proceed, and it is my understanding that the defendant's attorney agreed to hear the case today.
COURT: It is the court's understanding that the defendant would be ready to proceed today.
MR. TYNDALL: Your Honor, if I recall correctly, I stated in chambers that we could hear the case if the defendant could get ready by today and I am not ready. Therefore I must move to continue the case.
COURT: I'll deny your motion.
MR. PETTYJOHN: Could we let the record show that all parties agree to hear the case today?
COURT: Call your first witness.
It appears to be well settled in this jurisdiction that a party entitled to notice of a motion may waive such notice. 6 Strong, N.C. Index 2d, Notice, Sec. 3, p. 134. The record before us discloses that plaintiff issued notice of hearing for 7 *180 July 1970 but for some reason attorneys for the parties were before the court on 29 June 1970 as above indicated. It appears that there might have been an agreement between the parties for the hearing to be held on 29 June 1970 rather than 7 July 1970 but this is not definitely established. If there was such an agreement it should have been set forth in the record, either as a stipulation or as a finding of fact by the trial court. Nevertheless, assuming there was no definite agreement for the hearing to be held on 29 June 1970, we hold that the assignment of error is without merit.
In the case of In Re Woodell, 253 N.C. 420, 117 S.E.2d 4 (1960), in an opinion by Parker, Justice (later Chief Justice), we find the following:
This Court said in Collins v. Highway Comm., 237 N.C. 277, 74 S.E.2d 709: "A party who is entitled to notice of a motion may waive notice. A party ordinarily does this by attending the hearing of the motion and participating in it."
The record reveals that the hearing in this case began on 29 June 1970 and terminated by entry of the order appealed from on 3 July 1970; that plaintiff presented 13 witnesses, all of whom were cross-examined by defendant's counsel; that defendant testified and introduced five witnesses in addition to herself. Defendant has suggested no additional testimony that would have been available to her at a later hearing and fails to show how she might have benefited from a later hearing.
Although the statutes indicate that ordinarily a parent is entitled to at least five days notice (an intervening Saturday or Sunday excluded) of a hearing involving the custody of a child, G.S. § 50-13.5(e) (1) and (2), G.S. § 1A-1, Rule 6, this is not an absolute right and is subject to the rule relating to waiver of notice above mentioned. It is also subject to the rule that a new trial will not be granted for mere technical error which could not have affected the result, but only for error which is prejudicial amounting to the denial of a substantial right. 1 Strong N.C. Index 2d, Appeal and Error, Sec. 47, p. 192. Defendant has failed to show how she was prejudiced by the court's failure to postpone the hearing, therefore, the assignment of error is overruled.
Defendant contends that the court erred in awarding custody of the child to the paternal grandparents who were not legally before the court and abused its discretion "when the record revealed that the paternal grandparents were in poor health and that their home was very primitively equipped". Pursuant to motion filed in this court by the paternal grandparents, an order has been entered making them parties to this action, thereby subjecting them to the jurisdiction of this court and of the District Court of Forsyth County to the same extent as if they had been orginal parties plaintiff. Rule 20(c) of the Rules of Practice in the Court of Appeals of North Carolina. We do not think the trial judge abused his discretion in awarding custody to the paternal grandparents. His findings that the child's custody should not be awarded to plaintiff or defendant, or to defendant's parents, but should be awarded to plaintiff's parents, are fully supported by the testimony. It is well settled that the question of custody is addressed to the trial court and its decision will be upheld if supported by competent evidence. Hinkle v. Hinkle, 266 N.C. 189, 146 S.E.2d 73 (1966); Roberts v. Short, 6 N.C. App. 419, 169 S.E.2d 910 (1969); In re McCraw Children, 3 N.C.App. 390, 165 S.E.2d 1 (1969). The assignment of error is overruled.
Finally, defendant contends the trial court erred in failing to find that she is a dependent spouse and awarding fees for her attorney. The record discloses that on 3 July 1970 the trial judge entered an order denying defendant's motion for counsel fees. The order contains the following paragraph:
"While the court finds as a matter of law that the husband is deemed to be the *181 supporting spouse, the court fails to find from all of the evidence that the wife is, as a matter of law, the dependent spouse for lack of showing that she is substantially dependent upon her husband for her maintenance and support or that she is substantially in need of maintenance and support from her husband." (emphasis added)
Taking the words as they were expressed and giving them their normal meaning, it appears that the trial court, by inadvertence or otherwise, held that in order to grant attorney fees on behalf of defendant it was necessary to find as a "matter of law" that she was substantially dependent upon her husband. We do not think the applicable statutes require such finding "as a matter of law".
G.S. § 50-13.6 provides as follows: "In an action or proceeding for the custody or support, or both, of a minor child the court may in its discretion allow reasonable attorney's fees to a dependent spouse, as defined in G.S. 50-16.1, who has insufficient means to defray the expenses of the suit."
The quoted statute provides the trial court with considerable discretion in allowing or disallowing attorney fees in child custody or support cases. The court's discretion in disallowing fees appears to be limited only by the abuse of discretion rule; but the court's discretion in allowing fees appears to be limited not only by the abuse of discretion rule but by certain provisions of the quoted statute as well as other statutes, particularly G.S. § 50-16.1(3) and G.S. § 50-16.1(4).
The question before us in the instant case involves the disallowance of attorney fees. We hold that the trial court, in its discretion, was fully authorized to disallow attorney fees for defendant's counsel but to disallow such fees as a matter of law was error.
The order awarding custody appealed from is affirmed but the order denying attorney fees is vacated and this cause is remanded for proper determination and order as to attorney fees.
Error and remanded.
CAMPBELL and HEDRICK, JJ., concur.
