what is the function of the participle "wailing" in the sentence below?

the wailing toddler was having a temper tantrum
a. "wailing" functions as a noun
b. "wailing" functions as a pronoun
c. "wailing" functions as an adjective
d. "wailing" is not a participle as used in this sentence

c. "wailing" functions as an adjective